pgsql: Refactor ecpg grammar so that it uses the core grammar's

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Refactor ecpg grammar so that it uses the core grammar's
Date: 2009-11-21 05:44:12
Message-ID: 20091121054412.BC17A753FB7@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Refactor ecpg grammar so that it uses the core grammar's unreserved_keyword
list, minus a few specific words that have to be treated specially. This
replaces a hard-wired list of keywords that would have needed manual
maintenance, and was not getting it. The 8.4 coding was already missing
these words, causing ecpg to incorrectly treat them as reserved words:
CALLED, CATALOG, DEFINER, ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION,
PRECEDING, RANGE, SECURITY, SERVER, UNBOUNDED, WRAPPER. In HEAD we were
additionally missing COMMENTS, FUNCTIONS, SEQUENCES, TABLES.
Per gripe from Bosco Rama.

Tags:
----
REL8_4_STABLE

Modified Files:
--------------
pgsql/src/interfaces/ecpg/preproc:
ecpg.trailer (r1.9 -> r1.9.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/ecpg.trailer?r1=1.9&r2=1.9.2.1)
ecpg.type (r1.1 -> r1.1.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/ecpg.type?r1=1.1&r2=1.1.2.1)
parse.pl (r1.3 -> r1.3.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/parse.pl?r1=1.3&r2=1.3.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message User Okbob 2009-11-21 15:40:16 orafce - orafce: Remove include gramparse.h in plvlex.c.
Previous Message Tom Lane 2009-11-21 05:44:06 pgsql: Refactor ecpg grammar so that it uses the core grammar's