Re: Leading comments and client applications

Rob Sargent <robjsargent@gmail.com>

From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Date: 2022-03-25T16:25:30Z
Lists: pgsql-general
> As far as the comparison behavior goes, psql's parser strips
> comments that start with double dashes, for $obscure_reasons.

That story aught to be worth a $beer or two
> The server is perfectly capable of ignoring those by itself,
> though.  (Awhile back I tried to remove that psql behavior,
> but it caused too much churn in our regression tests.)
>
> 			regards, tom lane
>
>




Commits

  1. psql: include intra-query "--" comments in what's sent to the server.