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

This followw up on the previous change (commit 7bff9f106a5) for partitions by
applying the same formatting to inheritance tables lists.

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

    Inherits: test_like_5,
              test_like_5x

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

    Inherits:
        test_like_5
        test_like_5x

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/1a11405a436038293f425f2ffc41b02235eda912

Modified Files
--------------
src/bin/psql/describe.c                         |  17 ++-
src/test/regress/expected/alter_table.out       |  30 +++--
src/test/regress/expected/constraints.out       |  42 ++++---
src/test/regress/expected/create_table_like.out |  16 ++-
src/test/regress/expected/foreign_data.out      |  45 ++++---
src/test/regress/expected/generated_stored.out  |  17 ++-
src/test/regress/expected/generated_virtual.out |  17 ++-
src/test/regress/expected/inherit.out           | 151 +++++++++++++++---------
src/test/regress/expected/triggers.out          |   3 +-
src/test/regress/expected/without_overlaps.out  |   9 +-
10 files changed, 218 insertions(+), 129 deletions(-)

Reply via email to