Re: [PATCH] Add --syntax to postgres for SQL syntax checking - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: [PATCH] Add --syntax to postgres for SQL syntax checking
Date
Msg-id CAKFQuwYPixWD48qHN62AFEdpaLSby-4L2Fweiv1jb6uMYrjOxw@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Add --syntax to postgres for SQL syntax checking  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
On Wed, May 15, 2024 at 6:35 PM David G. Johnston <david.g.johnston@gmail.com> wrote:

If in core I would still want to expose this as say a contrib module binary instead of hacking it into postgres.  It would be our first server program entry there.


Sorry for self-reply but:

Maybe name it "pg_script_check" with a, for now mandatory, "--syntax-only" option that enables this raw parse mode.  Leaving room for executing this in an environment where there is, or it can launch, a running instance that then performs post-parse analysis as well.

David J.

pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: [PATCH] Add --syntax to postgres for SQL syntax checking
Next
From: "Jonathan S. Katz"
Date:
Subject: PostgreSQL 17 Beta 1 release announcement draft