Обсуждение: pgsql: Improve behavior of \watch with non-tuple-returning commands.

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)