pgsql: psql: Make \d+ partition list formatting consistent with other o - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: psql: Make \d+ partition list formatting consistent with other o
Date
Msg-id E1w723q-00253r-2n@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Amit Langote
Date:
Subject: Re: pgsql: Doc: add information about partition locking
Next
From: Fujii Masao
Date:
Subject: pgsql: psql: Make \d+ inheritance tables list formatting consistent wit