From 82e73ba0d1f8990a76a20b3a57957e633945fb2b Mon Sep 17 00:00:00 2001
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Thu, 9 Feb 2012 11:37:54 +0200
Subject: [PATCH] Add new keywords SNAPSHOT and TYPES to the keyword list in
 gram.y

These were added to kwlist.h as unreserved keywords in separate patches,
but authors forgot to add them to the corresponding list in gram.y.
Because of that, even though they were supposed to be unreserved keywords,
they could not be used as identifiers. src/tools/check_keywords.pl is your
friend.
---
 src/backend/parser/gram.y | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 62fde67bd94..ac4b4635b94 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -12302,6 +12302,7 @@ unreserved_keyword:
 			| SHARE
 			| SHOW
 			| SIMPLE
+			| SNAPSHOT
 			| STABLE
 			| STANDALONE_P
 			| START
@@ -12325,6 +12326,7 @@ unreserved_keyword:
 			| TRUNCATE
 			| TRUSTED
 			| TYPE_P
+			| TYPES_P
 			| UNBOUNDED
 			| UNCOMMITTED
 			| UNENCRYPTED
-- 
GitLab