psql: Make \d+ inheritance tables list formatting consistent with other objects
Fujii Masao <fujii@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/describe.c | modified | +7 −10 |
| src/test/regress/expected/alter_table.out | modified | +20 −10 |
| src/test/regress/expected/constraints.out | modified | +28 −14 |
| src/test/regress/expected/create_table_like.out | modified | +10 −6 |
| src/test/regress/expected/foreign_data.out | modified | +30 −15 |
| src/test/regress/expected/generated_stored.out | modified | +11 −6 |
| src/test/regress/expected/generated_virtual.out | modified | +11 −6 |
| src/test/regress/expected/inherit.out | modified | +93 −58 |
| src/test/regress/expected/triggers.out | modified | +2 −1 |
| src/test/regress/expected/without_overlaps.out | modified | +6 −3 |
Discussion
- Fix how some lists are displayed by psql \d+ 16 messages · 2026-01-08 → 2026-03-30