pgsql: doc: Correct psql's \d+x documentation for sequences

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: doc: Correct psql's \d+x documentation for sequences
Date: 2026-10-21 14:39:17
Message-ID: E1xJXTJ-00000000COo-3jh2@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

doc: Correct psql's \d+x documentation for sequences

Commit 00f4c2959d6 added the x modifier to psql's list commands, making
\d+x display sequence descriptions in expanded mode. However, the
documentation and \? help indicate that x applies only without a pattern.

Clarify that \d+x also uses expanded mode when describing sequences
matched by a name or pattern, and update the command help accordingly.
Also clarify that the same restriction applies to \x on and \x auto.

Backpatch to v18, where the x modifier was introduced.

Reported-by: George MacKerron <george(dot)mackerron(at)databricks(dot)com>
Author: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Reviewed-by: Shihao Zhong <zhong950419(at)gmail(dot)com>
Discussion: https://postgr.es/m/FEA91EA9-CF32-4920-9674-F2C3E01C3807@databricks.com
Backpatch-through: 18

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/54f38d8115918b2145a5f7995b19c3dfc3b2d7ea

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 11 +++++++----
src/bin/psql/help.c | 3 ++-
2 files changed, 9 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-10-21 14:39:30 pgsql: doc: Correct psql's \d+x documentation for sequences
Previous Message Tom Lane 2026-10-21 14:34:54 pgsql: psql: Fall back to English for unsafe hidden query labels.