Skip to content

Commit 954ee4b

Browse files
committed
Fix inconsistencies in psql --help=commands
The set of subcommands supported by \dAp, \do and \dy was described incorrectly in psql's --help. The documentation was already consistent with the code. Reported-by: inoas, from IRC Author: Matthijs van der Vleuten Reviewed-by: Neil Chen Discussion: https://postgr.es/m/6a984e24-2171-4039-9050-92d55e7b23fe@www.fastmail.com Backpatch-through: 9.6
1 parent ac600c5 commit 954ee4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/help.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ slashUsage(unsigned short int pager)
237237
fprintf(output, _(" \\dL[S+] [PATTERN] list procedural languages\n"));
238238
fprintf(output, _(" \\dm[S+] [PATTERN] list materialized views\n"));
239239
fprintf(output, _(" \\dn[S+] [PATTERN] list schemas\n"));
240-
fprintf(output, _(" \\do[S] [PATTERN] list operators\n"));
240+
fprintf(output, _(" \\do[S+] [PATTERN] list operators\n"));
241241
fprintf(output, _(" \\dO[S+] [PATTERN] list collations\n"));
242242
fprintf(output, _(" \\dp [PATTERN] list table, view, and sequence access privileges\n"));
243243
fprintf(output, _(" \\drds [PATRN1 [PATRN2]] list per-database role settings\n"));
@@ -248,7 +248,7 @@ slashUsage(unsigned short int pager)
248248
fprintf(output, _(" \\dv[S+] [PATTERN] list views\n"));
249249
fprintf(output, _(" \\dE[S+] [PATTERN] list foreign tables\n"));
250250
fprintf(output, _(" \\dx[+] [PATTERN] list extensions\n"));
251-
fprintf(output, _(" \\dy [PATTERN] list event triggers\n"));
251+
fprintf(output, _(" \\dy[+] [PATTERN] list event triggers\n"));
252252
fprintf(output, _(" \\l[+] [PATTERN] list databases\n"));
253253
fprintf(output, _(" \\sf[+] FUNCNAME show a function's definition\n"));
254254
fprintf(output, _(" \\sv[+] VIEWNAME show a view's definition\n"));

0 commit comments

Comments
 (0)