postgresql/src/bin/psql
Fujii Masao f6f654ff12 Allow \watch to display query execution time if \timing is enabled.
Previously \watch could not display the query execution time even
when \timing was enabled because it used PSQLexec instead of
SendQuery and that function didn't support \timing. This patch
introduces PSQLexecWatch and changes \watch so as to use it, instead.
PSQLexecWatch is the function to run the query, print its results and
display how long it took (only when \timing is enabled).

This patch also changes --echo-hidden so that it doesn't print
the query that \watch executes. Since \watch cannot execute
backslash command queries, they should not be printed even
when --echo-hidden is set.

Patch by me, review by Heikki Linnakangas and Michael Paquier
2014-09-04 12:31:48 +09:00
..
po Translation updates 2014-07-21 01:08:04 -04:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
Makefile Fix client-only installation 2014-01-17 23:08:22 -05:00
command.c Allow \watch to display query execution time if \timing is enabled. 2014-09-04 12:31:48 +09:00
command.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
common.c Allow \watch to display query execution time if \timing is enabled. 2014-09-04 12:31:48 +09:00
common.h Allow \watch to display query execution time if \timing is enabled. 2014-09-04 12:31:48 +09:00
copy.c Add psql PROMPT variable showing which line of a statement is being edited. 2014-09-02 13:06:11 +02:00
copy.h Allow psql to print COPY command status in more cases. 2014-03-13 13:49:03 -04:00
create_help.pl Update copyright for 2014 2014-01-07 16:05:30 -05:00
describe.c psql: Show tablespace size in \db+ 2014-07-14 18:04:52 -04:00
describe.h Add display of oprcode (the underlying function's name) to psql's \do+. 2014-01-16 15:29:33 -05:00
help.c Add new ECHO mode 'errors' that displays only failed commands in psql. 2014-07-10 14:27:54 +09:00
help.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
input.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
input.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
large_obj.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
large_obj.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
mainloop.c Add psql PROMPT variable showing which line of a statement is being edited. 2014-09-02 13:06:11 +02:00
mainloop.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
mbprint.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
mbprint.h Fix indentation of \d footers for non-ASCII cases. 2012-03-07 19:25:59 -05:00
nls.mk Add missing source files to nls.mk 2014-07-15 10:10:42 -04:00
print.c Fix whitespace 2014-08-21 21:37:41 -04:00
print.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
prompt.c Add psql PROMPT variable showing which line of a statement is being edited. 2014-09-02 13:06:11 +02:00
prompt.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
psqlrc.sample Improve FILES section of psql reference page. 2014-01-14 19:27:57 -05:00
psqlscan.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
psqlscan.l Fix lexing of U& sequences just before EOF. 2014-02-03 19:47:57 -05:00
settings.h Add psql PROMPT variable showing which line of a statement is being edited. 2014-09-02 13:06:11 +02:00
startup.c Add new ECHO mode 'errors' that displays only failed commands in psql. 2014-07-10 14:27:54 +09:00
stringutils.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
stringutils.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
tab-complete.c Support ALTER SYSTEM RESET command. 2014-09-02 16:06:58 +09:00
tab-complete.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
variables.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
variables.h Update copyright for 2014 2014-01-07 16:05:30 -05:00