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

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, 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-27 14:47:58
Message-ID: 202602271443.zrl5g4uatnhm@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2026-02-27 14:58:34 Re: Use pg_icu_unicode_version(void) instead of pg_icu_unicode_version()
Previous Message Heikki Linnakangas 2026-02-27 14:30:37 Re: Add 64-bit XIDs into PostgreSQL 15