pgsql: psql: Make \d+ inheritance tables list formatting consistent wit - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: psql: Make \d+ inheritance tables list formatting consistent wit
Date
Msg-id E1w72Gi-00258V-02@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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 <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/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(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: psql: Make \d+ partition list formatting consistent with other o
Next
From: David Rowley
Date:
Subject: pgsql: Fix datum_image_*()'s inability to detect sign-extension variati