From: | "Daniel Verite" <daniel(at)manitou-mail(dot)org> |
---|---|
To: | "Pavlo Golub" <pavlo(dot)golub(at)cybertec(dot)at> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>,pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #16034: `\set ECHO all` doesn't work for \e command |
Date: | 2019-10-03 17:46:44 |
Message-ID: | 1c0128a5-0507-4e53-902e-f1a4596b267e@manitou-mail.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Pavlo Golub wrote:
> > \set ECHO queries
> > would display them including immediately after \e in an interactive
> > session.
>
> Oh, great! That works! Thanks! But why ECHO all doesn't? Should all
> include queries by default?
As I understand, "ECHO all" does nothing when the commands are
read interactively. So in that mode it's the same as "ECHO none",
and it doesn't seem very useful indeed.
It appears to be an ancient decision, since it was already
described in the 7.1 docs pretty much like it is today:
https://www.postgresql.org/docs/7.1/app-psql.html
Maybe I'm missing the use case of neutralizing "ECHO all"
interactively, but otherwise I agree it would be more intuitive
and useful if it did the same thing in interactive and non-interactive
modes.
Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2019-10-03 19:59:57 | Re: BUG #16034: `\set ECHO all` doesn't work for \e command |
Previous Message | 张舒燕 | 2019-10-03 15:33:32 | Write skew anmalies are found in SERIALIZABLE isolation |