Re: Fix how some lists are displayed by psql \d+ - Mailing list pgsql-hackers

From Neil Chen
Subject Re: Fix how some lists are displayed by psql \d+
Date
Msg-id CAA3qoJn8v_sS77oztebjGiW123=vBa5T1RMrN_vbAaC5N=FLcQ@mail.gmail.com
Whole thread Raw
In response to Fix how some lists are displayed by psql \d+  (Peter Smith <smithpb2250@gmail.com>)
Responses Re: Fix how some lists are displayed by psql \d+
List 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?

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Use IsA() macro instead of nodeTag comparison
Next
From: Xuneng Zhou
Date:
Subject: Re: Optimize SnapBuildPurgeOlderTxn: use in-place compaction instead of temporary array