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 <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Reviewed-by: Neil Chen <[email protected]>
Reviewed-by: Greg Sabino Mullane <[email protected]>
Reviewed-by: Soumya S Murali <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: 
https://postgr.es/m/cahut+pu1puo00c-ohglnaceczww8mb3q8dcsvx0czwhrfs4...@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 via email to