1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Add \watch [SEC] command to psql.

This allows convenient re-execution of commands.

Will Leinweber, reviewed by Peter Eisentraut, Daniel Farina, and Tom Lane
This commit is contained in:
Tom Lane
2013-04-04 19:56:33 -04:00
parent e75feb2834
commit c6a3fce7dd
4 changed files with 145 additions and 2 deletions

View File

@ -165,7 +165,7 @@ slashUsage(unsigned short int pager)
currdb = PQdb(pset.db);
output = PageOutput(95, pager);
output = PageOutput(96, pager);
/* if you add/remove a line here, change the row count above */
@ -175,6 +175,7 @@ slashUsage(unsigned short int pager)
fprintf(output, _(" \\gset [PREFIX] execute query and store results in psql variables\n"));
fprintf(output, _(" \\h [NAME] help on syntax of SQL commands, * for all commands\n"));
fprintf(output, _(" \\q quit psql\n"));
fprintf(output, _(" \\watch [SEC] execute query every SEC seconds\n"));
fprintf(output, "\n");
fprintf(output, _("Query Buffer\n"));