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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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(-)

Browse pgsql-committers by date

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