Skip to content

Commit f0f879e

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 5b7bf9f commit f0f879e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/help.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ slashUsage(unsigned short int pager)
246246
fprintf(output, _(" \\dL[S+] [PATTERN] list procedural languages\n"));
247247
fprintf(output, _(" \\dm[S+] [PATTERN] list materialized views\n"));
248248
fprintf(output, _(" \\dn[S+] [PATTERN] list schemas\n"));
249-
fprintf(output, _(" \\do[S] [PATTERN] list operators\n"));
249+
fprintf(output, _(" \\do[S+] [PATTERN] list operators\n"));
250250
fprintf(output, _(" \\dO[S+] [PATTERN] list collations\n"));
251251
fprintf(output, _(" \\dp [PATTERN] list table, view, and sequence access privileges\n"));
252252
fprintf(output, _(" \\drds [PATRN1 [PATRN2]] list per-database role settings\n"));
@@ -258,7 +258,7 @@ slashUsage(unsigned short int pager)
258258
fprintf(output, _(" \\du[S+] [PATTERN] list roles\n"));
259259
fprintf(output, _(" \\dv[S+] [PATTERN] list views\n"));
260260
fprintf(output, _(" \\dx[+] [PATTERN] list extensions\n"));
261-
fprintf(output, _(" \\dy [PATTERN] list event triggers\n"));
261+
fprintf(output, _(" \\dy[+] [PATTERN] list event triggers\n"));
262262
fprintf(output, _(" \\l[+] [PATTERN] list databases\n"));
263263
fprintf(output, _(" \\sf[+] FUNCNAME show a function's definition\n"));
264264
fprintf(output, _(" \\sv[+] VIEWNAME show a view's definition\n"));

0 commit comments

Comments
 (0)