Re: Fix how some lists are displayed by psql \d+
Neil Chen <carpenter.nail.cz@gmail.com>
From: Neil Chen <carpenter.nail.cz@gmail.com>
To: Peter Smith <smithpb2250@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-01-09T01:19:28Z
Lists: pgsql-hackers
Hi Peter,
On Fri, Jan 9, 2026 at 6:47 AM Peter Smith <smithpb2250@gmail.com> wrote:
> I recently saw that the psql \d+ lists for "Partitions:" are not
> aligned in quite the same way as other lists ("Publications:" etc)
> because they use indents and line breaks differently. e.g. See below:
>
> PSA v1
> 0001 - Fix (common code) lists for "Partitions:" and "Child tables:"
> 0002 - Fix list for "Inherits:" in the same way
>
>
This patch looks good to me.
However, referring to the original code implementation, I believe the
initial design intention for the psql display was to make it as "compact"
as possible.
I'm not sure.. if it's worthwhile to uniformly change the display style of
other items you mentioned (such as Publications) to the compact style?
Commits
-
psql: Make \d+ inheritance tables list formatting consistent with other objects
- 1a11405a4360 19 (unreleased) landed
-
psql: Make \d+ partition list formatting consistent with other objects
- 7bff9f106a5e 19 (unreleased) landed