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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve behavior of \watch with non-tuple-returning commands.
Date: 2013-05-04 20:41:28
Message-ID: E1UYjGq-0001MY-F9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2013-05-06 02:54:09 pgsql: Translation updates
Previous Message Bruce Momjian 2013-05-04 17:23:09 pgsql: docs: Improve log_line_prefix session_id query