Re: psql \dh: List High-Level (Root) Tables and Indexes

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: Sadeq Dousti <msdousti(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: psql \dh: List High-Level (Root) Tables and Indexes
Date: 2025-02-24 00:40:09
Message-ID: CAKFQuwZetSzsEQgFLrCcgtJW-T6OZjyUOTs2s8vNWgDsm=N5zQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Feb 23, 2025 at 4:31 PM Greg Sabino Mullane <htamfids(at)gmail(dot)com>
wrote:

> On Sun, Feb 23, 2025 at 4:34 PM Sadeq Dousti <msdousti(at)gmail(dot)com> wrote:
>
>> Totally agree about the naming. There's no other terminology known to me,
>> but I'll definitely think about it. Of course, I'm very open to
>> suggestions from you or anyone else in the community.
>>
>
> The problem is that we are really tight on available letters for a
> bare \d. I immediately thought of "adult" tables (those that are not
> children). But both \da and \dA are used! The only other mnemonic option is
> "\de" where e stands for elder tables (get it? elder because they are not
> children).
>
>
How about:
\pset partition_roots_only 'true'

Then update all relevant queries to respect it.

That way no learning new ways to get the information you want but instead
can set a global filter to suppress those child nodes that really don't
need to be seen normally.

It would be nice if "N partition children suppressed due to
partition_roots_only" would appear in the output somewhere if going this
direction.

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2025-02-24 00:57:49 Re: Remove wal_[sync|write][_time] from pg_stat_wal and track_wal_io_timing
Previous Message Jeff Davis 2025-02-24 00:21:59 Re: Statistics Import and Export