pgsql: Improve behavior of \watch with non-tuple-returning commands. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve behavior of \watch with non-tuple-returning commands.
Date
Msg-id E1UYjGq-0001MY-F9@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/626e6eda4f605788110bfc5fa95760305f7eb749

Modified Files
--------------
src/bin/psql/command.c |   19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: docs: Improve log_line_prefix session_id query
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Translation updates