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

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Make \d+ inheritance tables list formatting consistent wit
Date: 2026-03-30 02:22:20
Message-ID: E1w72Gi-00258V-02@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)com>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Neil Chen <carpenter(dot)nail(dot)cz(at)gmail(dot)com>
Reviewed-by: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Reviewed-by: Soumya S Murali <soumyamurali(dot)work(at)gmail(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)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(-)

Browse pgsql-committers by date

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