pgsql: psql: Make \d+ partition list formatting consistent with other o

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Make \d+ partition list formatting consistent with other o
Date: 2026-03-30 02:09:03
Message-ID: E1w723q-00253r-2n@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Make \d+ partition list formatting consistent with other objects

Previously, \d+ <table> displayed partitions differently from other object
lists: the first partition appeared on the same line as the "Partitions"
header. For example:

Partitions: pt12 FOR VALUES IN (1, 2),
pt34 FOR VALUES IN (3, 4)

This commit updates the output so that partitions are listed consistently
with other objects, with each entry on its own line starting below the header:

Partitions:
pt12 FOR VALUES IN (1, 2)
pt34 FOR VALUES IN (3, 4)

Author: Peter Smith <smithpb2250(at)gmail(dot)com>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Neil Chen <carpenter(dot)nail(dot)cz(at)gmail(dot)com>
Reviewed-by: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Reviewed-by: Soumya S Murali <soumyamurali(dot)work(at)gmail(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAHut+Pu1puO00C-OhgLnAcECzww8MB3Q8DCsvx0cZWHRfs4gBQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7bff9f106a5ec36bd97829ca7eb97fc2a4705406

Modified Files
--------------
contrib/seg/expected/partition.out | 5 +-
src/bin/psql/describe.c | 16 +++----
src/test/regress/expected/alter_table.out | 6 ++-
src/test/regress/expected/constraints.out | 22 +++++----
src/test/regress/expected/create_table.out | 17 ++++---
src/test/regress/expected/foreign_data.out | 64 +++++++++++++++++---------
src/test/regress/expected/inherit.out | 58 ++++++++++++++---------
src/test/regress/expected/insert.out | 32 +++++++------
src/test/regress/expected/partition_split.out | 23 +++++----
src/test/regress/expected/replica_identity.out | 6 ++-
src/test/regress/expected/rowsecurity.out | 7 +--
src/test/regress/expected/tablespace.out | 10 ++--
12 files changed, 160 insertions(+), 106 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2026-03-30 02:22:20 pgsql: psql: Make \d+ inheritance tables list formatting consistent wit
Previous Message Amit Langote 2026-03-30 01:32:57 Re: pgsql: Doc: add information about partition locking