Skip site navigation (1) Skip section navigation (2)

pgsql: Make plpgsql's unreserved keywords more unreserved.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make plpgsql's unreserved keywords more unreserved.
Date: 2012-09-27 02:28:04
Message-ID: E1TH3pc-0005ai-PR@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: 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

Next:From: Peter EisentrautDate: 2012-09-27 02:51:18
Subject: pgsql: pg_upgrade test: Disable fsync in initdb and postgres calls
Previous:From: Tom LaneDate: 2012-09-27 00:07:46
Subject: pgsql: Add new EVENT keyword to unreserved_keyword production.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group