kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 96 forks source link

Postgresql psql --quiet option #89

Closed RRikor closed 3 years ago

RRikor commented 3 years ago

Is there a way to add a --quiet option to the postgresql connection? Without --quiet, by default psql displays configuration messages set in ~/.psqlrc at the start, and these are interpreted by vim-dadbod-ui as schemas:

query output: image

vim-dadbod-ui schemas: image

the cause: image

kristijanhusak commented 3 years ago

You can set QUIET in your psqlrc like this:

\set QUIET 1
\pset null '(null)'
\set QUIET 0