Re: Fix how some lists are displayed by psql \d+

From: Neil Chen <carpenter(dot)nail(dot)cz(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Fix how some lists are displayed by psql \d+
Date: 2026-01-09 01:19:28
Message-ID: CAA3qoJn8v_sS77oztebjGiW123=vBa5T1RMrN_vbAaC5N=FLcQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Peter,

On Fri, Jan 9, 2026 at 6:47 AM Peter Smith <smithpb2250(at)gmail(dot)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?

In response to

Responses

Browse pgsql-hackers by date

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