pgsql: Make plpgsql's unreserved keywords more unreserved. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Make plpgsql's unreserved keywords more unreserved.
Date
Msg-id E1TH3pc-0005ai-PR@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make plpgsql's unreserved keywords more unreserved.

There were assorted places where unreserved keywords were not treated the
same as T_WORD (that is, a random unrecognized identifier).  Fix them.
It might not always be possible to allow this, but it is in all these
places, so I don't see any downside.

Per gripe from Jim Wilson.  Arguably this is a bug fix, but given the lack
of other complaints and the ease of working around it (just quote the
word), I won't risk back-patching.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bac95fd4740e3ac13baf5c2ad38b9c9dc26f9c9d

Modified Files
--------------
src/pl/plpgsql/src/gram.y       |   57 ++++++++++++++++++++++++++++++++++++--
src/pl/plpgsql/src/pl_scanner.c |   19 +++++++++++++
src/pl/plpgsql/src/plpgsql.h    |    1 +
3 files changed, 74 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Add new EVENT keyword to unreserved_keyword production.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: pg_upgrade test: Disable fsync in initdb and postgres calls