]> git.ipfire.org Git - thirdparty/postgresql.git/commit
psql: Make \d+ partition list formatting consistent with other objects
authorFujii Masao <fujii@postgresql.org>
Mon, 30 Mar 2026 02:06:42 +0000 (11:06 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 30 Mar 2026 02:06:42 +0000 (11:06 +0900)
commit7bff9f106a5ec36bd97829ca7eb97fc2a4705406
tree698f1d77e486f31af7e59cf94e194dbe8716d782
parentc57d8178eb06ec001b6538c3bb985e079b6d329b
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
12 files changed:
contrib/seg/expected/partition.out
src/bin/psql/describe.c
src/test/regress/expected/alter_table.out
src/test/regress/expected/constraints.out
src/test/regress/expected/create_table.out
src/test/regress/expected/foreign_data.out
src/test/regress/expected/inherit.out
src/test/regress/expected/insert.out
src/test/regress/expected/partition_split.out
src/test/regress/expected/replica_identity.out
src/test/regress/expected/rowsecurity.out
src/test/regress/expected/tablespace.out