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

From Pavel Luzanov
Subject Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands
Date
Msg-id ed8e31bd-a33e-4259-a91b-fe9cb048b49d@postgrespro.ru
Whole thread Raw
In response to Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands
List 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





pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Skipping schema changes in publication
Next
From: David Rowley
Date:
Subject: Re: Partial Mode in Aggregate Functions