Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands

From: Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru>
To: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands
Date: 2026-02-26 04:57:10
Message-ID: ed8e31bd-a33e-4259-a91b-fe9cb048b49d@postgrespro.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 20.02.2026 18:48, Álvaro Herrera wrote:
> So if you want details but
> no comments, you use "\d+", and if you want comments but no details you
> use "\d*", and if you want everything, then you use \d+* or \d*+?

We need to keep in mind two more modifiers: S for system objects and x
for eXtended mode.
So it may be looks like slightly awkward: \dSx+*

Another option is to use psql variable (for example ECHO_COMMENTS
on/off) to force comments in \d* commands.

I'm not sure what option is better. But I like the idea of printing
comments.

--
Pavel Luzanov
Postgres Professional: https://postgrespro.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2026-02-26 04:57:29 Re: Partial Mode in Aggregate Functions
Previous Message shveta malik 2026-02-26 04:56:46 Re: Skipping schema changes in publication