Re: psql - factor out echo code

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
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 20:56:54
Message-ID: 1155932.1625259414@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> writes:
> Yes. Maybe decorations should be SQL comments, and the purpose/origin of
> the query could be made clear as you suggest, eg something like markdown
> in a comment:
> "-- # <whatever> QUERY\n%s\n\n"

If we keep the decoration, I'd agree with dropping all the asterisks.
I'd vote for something pretty minimalistic, like

-- INTERNAL QUERY:

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2021-07-02 21:07:50 Re: psql - factor out echo code
Previous Message Tom Lane 2021-07-02 20:51:51 Re: Add proper planner support for ORDER BY / DISTINCT aggregates