Re: [PATCH] Add --syntax to postgres for SQL syntax checking
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: Robert Haas <robertmhaas@gmail.com>, Josef Šimánek <josef.simanek@gmail.com>
Cc: Tomas Vondra <tomas.vondra@enterprisedb.com>,
"David G. Johnston" <david.g.johnston@gmail.com>,
Tom Lane <tgl@sss.pgh.pa.us>, Laurenz Albe <laurenz.albe@cybertec.at>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-05-16T10:29:08Z
Lists: pgsql-hackers
On 15.05.24 21:05, Robert Haas wrote: > I don't think it's at all obvious that this belongs on the server side > rather than the client side. I think it could be done in either place, > or both. I just think we don't have the infrastructure to do it > cleanly, at present. I think if you're going to do a syntax-check-with-catalog-lookup mode, you need authentication and access control. The mode without catalog lookup doesn't need that. But it might be better to offer both modes through a similar interface (or at least plan ahead for that).