Skip to content

[pull] master from postgres:master #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions doc/src/sgml/ref/psql-ref.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -3857,7 +3857,7 @@ SELECT 1 \bind \sendpipeline
(if given) is reached, or the query no longer returns the minimum number
of rows. Wait the specified number of seconds (default 2) between executions.
The default wait can be changed with the variable
<xref linkend="app-psql-variables-watch-interval"/>).
<xref linkend="app-psql-variables-watch-interval"/>.
For backwards compatibility,
<replaceable class="parameter">seconds</replaceable> can be specified
with or without an <literal>interval=</literal> prefix.
Expand Down Expand Up @@ -4756,9 +4756,10 @@ bar
<term><varname>WATCH_INTERVAL</varname></term>
<listitem>
<para>
This variable sets the default interval which <command>\watch</command>
waits between executing the query. Specifying an interval in the
command overrides this variable.
This variable sets the default interval, in seconds, which
<command>\watch</command> waits between executing the query. The
default is 2 seconds. Specifying an interval in the command overrides
this variable.
</para>
</listitem>
</varlistentry>
Expand Down
5 changes: 3 additions & 2 deletions src/bin/psql/help.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,9 @@ helpVariables(unsigned short int pager)
" VERSION_NAME\n"
" VERSION_NUM\n"
" psql's version (in verbose string, short string, or numeric format)\n");
HELP0(" WATCH_INTERVAL\n"
" if set to a number, overrides the default two second \\watch interval\n");
HELPN(" WATCH_INTERVAL\n"
" number of seconds \\watch waits between executions (default %s)\n",
DEFAULT_WATCH_INTERVAL);

HELP0("\nDisplay settings:\n");
HELP0("Usage:\n");
Expand Down