aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2014-11-28 02:42:43 +0900
committerFujii Masao <fujii@postgresql.org>2014-11-28 02:44:40 +0900
commit4b1953079fb020da7089e58e3b0543058d867803 (patch)
treecaa853f921a44f9a32e539c969c6dff68fc9cd27 /src
parent75bac647f08beb2e64215b0118e9c505ca9feb9d (diff)
downloadpostgresql-4b1953079fb020da7089e58e3b0543058d867803.tar.gz
postgresql-4b1953079fb020da7089e58e3b0543058d867803.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')
-rw-r--r--src/bin/psql/command.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 21cddd11ccf..ad503749e52 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -2585,7 +2585,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 (;;)