From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Make \d+ partition list formatting consistent with other o
Date: Mon, 30 Mar 2026 02:09:03 +0000
Message-ID: <E1w723q-00253r-2n@gemulon.postgresql.org> (raw)
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@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Neil Chen <carpenter.nail.cz@gmail.com>
Reviewed-by: Greg Sabino Mullane <htamfids@gmail.com>
Reviewed-by: Soumya S Murali <soumyamurali.work@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: psql: Make \d+ partition list formatting consistent with other o
In-Reply-To: <E1w723q-00253r-2n@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox