This topic is extracted from [1].

As mentioned there, in psql, running \? displays the following lines.

 >  \gdesc                 describe result of query, without executing it
 >  \gexec                 execute query, then execute each value in its result
 >  \gset [PREFIX]         execute query and store result in psql variables
 >  \gx [(OPTIONS)] [FILE] as \g, but forces expanded output mode
 >  \q                     quit psql
 >  \watch [[i=]SEC] [c=N] [m=MIN]
!>                          execute query every SEC seconds, up to N times
!>                          stop if less than MIN rows are returned

The last two lines definitely have some extra indentation.
I've attached a patch that fixes this.

[1] 
https://www.postgresql.org/message-id/20230830.103356.1909699532104167477.horikyota....@gmail.com

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center
diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c
index 38c165a627..f8eeef8e4e 100644
--- a/src/bin/psql/help.c
+++ b/src/bin/psql/help.c
@@ -201,8 +201,8 @@ slashUsage(unsigned short int pager)
 	HELP0("  \\gx [(OPTIONS)] [FILE] as \\g, but forces expanded output mode\n");
 	HELP0("  \\q                     quit psql\n");
 	HELP0("  \\watch [[i=]SEC] [c=N] [m=MIN]\n");
-	HELP0("                          execute query every SEC seconds, up to N times\n");
-	HELP0("                          stop if less than MIN rows are returned\n");
+	HELP0("                         execute query every SEC seconds, up to N times\n");
+	HELP0("                         stop if less than MIN rows are returned\n");
 	HELP0("\n");
 
 	HELP0("Help\n");

Reply via email to