Re: psql - factor out echo code

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Shinya11(dot)Kato(at)nttdata(dot)com, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: psql - factor out echo code
Date: 2021-07-02 21:37:24
Message-ID: alpine.DEB.2.22.394.2107022328450.2359988@pseudo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> "-- # <whatever> QUERY\n%s\n\n"

Attached an attempt along those lines. I found another duplicate of the
ascii-art printing in another function.

Completion queries seems to be out of the echo/echo hidden feature.

Incredible, there is a (small) impact on regression tests for the \gexec
case. All other changes have no impact, because they are not tested:-(


Attachment Content-Type Size
psql-echo-3.patch text/x-diff 27.2 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Paul A Jungwirth 2021-07-02 21:39:50 Re: SQL:2011 application time
Previous Message Tom Lane 2021-07-02 21:33:39 Re: psql - factor out echo code