]> granicus.if.org Git - postgresql/commit
Improve behavior of \watch with non-tuple-returning commands.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 May 2013 20:41:22 +0000 (16:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 May 2013 20:41:22 +0000 (16:41 -0400)
commit626e6eda4f605788110bfc5fa95760305f7eb749
tree07bbf4c5ff3ee3296909fa4cbb0a747c58809945
parent083d8fa79dbd693f48c1c195bf4f2af3d1e7dc67
Improve behavior of \watch with non-tuple-returning commands.

Print the command tag if we get PGRES_COMMAND_OK, and throw an error for
other cases.  Per gripe from Michael Paquier.

In passing, add an fflush(), just to be real sure the output appears
before we sleep.
src/bin/psql/command.c