Re: Request for Formal Syntax of WHERE Clause Conditions - Mailing list pgsql-docs

From Tom Lane
Subject Re: Request for Formal Syntax of WHERE Clause Conditions
Date
Msg-id 3358480.1737480363@sss.pgh.pa.us
Whole thread Raw
In response to Request for Formal Syntax of WHERE Clause Conditions  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> I am building a PostgreSQL parser and need a precise reference for the
> formal syntax of condition used in the WHERE clause.

We do not have one.  You might be able to extract what you need from
our Bison grammar though:


https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/backend/parser/gram.y;h=d7f9c00c4099bd86c39ce79c997123a2a0ca6782;hb=HEAD

starting more or less from the a_expr production.

Keep in mind that this is a moving target, as we frequently add
new syntax features.

            regards, tom lane



pgsql-docs by date:

Previous
From: Tom Lane
Date:
Subject: Re: substring synopsis section, third argument is optional doc didn't show that
Next
From: Tom Lane
Date:
Subject: Re: Typo on tutorial window page