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

From Álvaro Herrera
Subject Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands
Date
Msg-id 202602271443.zrl5g4uatnhm@alvherre.pgsql
Whole thread Raw
In response to Re: Show comments in \dRp+, \dRs+, and \dX+ psql meta-commands  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
List pgsql-hackers
On 2026-Feb-27, Pavel Luzanov wrote:

> On 26.02.2026 16:53, Álvaro Herrera wrote:
> > I wonder though if the variable ought to be more
> > generic.
> 
> Can you please explain what you mean by more generic?

I think if we limit it to "does plus add comments or not" is a bit too
narrow a definition.  Maybe "BACKSLASH_CMD_OPTS" that takes a
comma-separated list, say

\pset BACKSLASH_CMD_OPTS comments,expanded

and with that then all commands behave as if the '*' and 'x' options had
been given.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"If you want to have good ideas, you must have many ideas.  Most of them
will be wrong, and what you have to learn is which ones to throw away."
                                                         (Linus Pauling)



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Add 64-bit XIDs into PostgreSQL 15
Next
From: Joe Conway
Date:
Subject: Re: Use pg_icu_unicode_version(void) instead of pg_icu_unicode_version()