psql: Clarify help message for WATCH_INTERVAL
authorDaniel Gustafsson <[email protected]>
Mon, 7 Apr 2025 11:44:58 +0000 (13:44 +0200)
committerDaniel Gustafsson <[email protected]>
Mon, 7 Apr 2025 11:44:58 +0000 (13:44 +0200)
The help message for WATCH_INTERVAL was hard to interpret and didn't
follow the style of other messages, this updates it to nake it fit in
better and be easier to interpret.

Author: Daniel Gustafsson <[email protected]>
Reported-by: Kyotaro Horiguchi <[email protected]>
Reviewed-by: David G. Johnston <[email protected]>
Discussion: https://postgr.es/m/20250326.120732.1167093737847500721[email protected]

src/bin/psql/help.c

index fe96e3e1de99ea81f25d9f425dc19f6fc477e0c8..daa725246c984c0234a4f641bedfc771799e4220 100644 (file)
@@ -461,7 +461,7 @@ helpVariables(unsigned short int pager)
          "  VERSION_NUM\n"
          "    psql's version (in verbose string, short string, or numeric format)\n");
    HELP0("  WATCH_INTERVAL\n"
-         "    number of seconds \\watch by default waits between executing the query buffer\n");
+         "    if set to a number, overrides the default two second \\watch interval\n");
 
    HELP0("\nDisplay settings:\n");
    HELP0("Usage:\n");