diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-11-28 02:42:43 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-11-28 02:44:14 +0900 |
commit | 0ec68a083b0619eaf48f7249a6659216c9fe5e35 (patch) | |
tree | 5c28673100eed3df5150bd99ac52963965fe3d8c /src/bin/psql/command.c | |
parent | 6e9d43eb02583ce29ffbbf732ab8f26e2a58e4cf (diff) | |
download | postgresql-0ec68a083b0619eaf48f7249a6659216c9fe5e35.tar.gz postgresql-0ec68a083b0619eaf48f7249a6659216c9fe5e35.zip |
Make \watch respect the user's \pset null setting.
Previously \watch always ignored the user's \pset null setting.
\pset null setting should be ignored for \d and similar queries.
For those, the code can reasonably have an opinion about what
the presentation should be like, since it knows what SQL query
it's issuing. This argument surely doesn't apply to \watch,
so this commit makes \watch use the user's \pset null setting.
Back-patch to 9.3 where \watch was added.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 9b7f241fd40..2e893599081 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -2754,7 +2754,6 @@ do_watch(PQExpBuffer query_buf, long sleep) * Set up rendering options, in particular, disable the pager, because * nobody wants to be prompted while watching the output of 'watch'. */ - myopt.nullPrint = NULL; myopt.topt.pager = 0; for (;;) |