pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Make \d+ inheritance tables list formatting consistent wit
Date: Mon, 30 Mar 2026 02:22:20 +0000
Message-ID: <E1w72Gi-00258V-02@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1w72Gi-00258V-02@gemulon.postgresql.org>
Permalink:  ../E1w72Gi-00258V-02@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w72Gi-00258V-02@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: psql: Make \d+ inheritance tables list formatting consistent wit
  In-Reply-To: <E1w72Gi-00258V-02@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox