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:
@ -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"));
|
||||
|
Reference in New Issue
Block a user