diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index f945c9f394b..66122bcb4ca 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1340,10 +1340,13 @@ SELECT $1 \parse stmt1 As with many other commands, if x is appended to - the command name, the results are displayed in expanded mode, but note - that this only applies when \d is used without a - pattern argument, and - the x modifier cannot appear immediately after the + the command name, the results are displayed in expanded mode for this + command only, but note that this only applies when \d + is used without a pattern + argument or to describe a sequence. + The same limitation on expanded output applies to + \x on and \x auto. + The x modifier cannot appear immediately after the \d (because \dx is a different command); the x modifier may only appear after an S or + modifier. For example, diff --git a/src/bin/psql/help.c b/src/bin/psql/help.c index 9c15cb679fd..84d052e4780 100644 --- a/src/bin/psql/help.c +++ b/src/bin/psql/help.c @@ -220,7 +220,8 @@ slashUsage(unsigned short int pager) HELP0("Informational\n"); HELP0(" (options: S = show system objects, x = expanded mode, + = additional detail)\n"); HELP0(" \\d[Sx+] list tables, views, and sequences\n"); - HELP0(" \\d[S+] NAME describe table, view, sequence, or index\n"); + HELP0(" \\d[Sx+] NAME describe table, view, sequence, or index\n"); + HELP0(" (x applies only to sequences)\n"); HELP0(" \\da[Sx] [PATTERN] list aggregates\n"); HELP0(" \\dA[x+] [PATTERN] list access methods\n"); HELP0(" \\dAc[x+] [AMPTRN [TYPEPTRN]] list operator classes\n");