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.
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 Eisentraut||Date: 2012-09-27 02:51:18|
|Subject: pgsql: pg_upgrade test: Disable fsync in initdb and postgres calls|
|Previous:||From: Tom Lane||Date: 2012-09-27 00:07:46|
|Subject: pgsql: Add new EVENT keyword to unreserved_keyword production.|