Re: [PATCH] Add --syntax to postgres for SQL syntax checking

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: Josef Šimánek <josef.simanek@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Laurenz Albe <laurenz.albe@cybertec.at>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-12-15T15:31:32Z
Lists: pgsql-hackers
On Fri, Dec 15, 2023 at 8:20 AM Josef Šimánek <josef.simanek@gmail.com>
wrote:

> (parser is not available
> in public APIs of postgres_fe.h or libpq).
>

What about building "libpg" that does expose and exports some public APIs
for the parser?  We can include a reference CLI implementation for basic
usage of the functionality while leaving the actual language server project
outside of core.

David J.