summaryrefslogtreecommitdiff
path: root/src/include/parser
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2013-06-28 10:18:00 -0400
committerRobert Haas <rhaas@postgresql.org>2013-06-28 11:11:00 -0400
commit5893ffa79c03824f34ae3d37f211381fd1c17283 (patch)
treeacccee7c457ab0d8f2224323d0e1faef0e19c3b7 /src/include/parser
parent5ee73525d57380a55b5c87f8df1c30bd32fb98b3 (diff)
Make the OVER keyword unreserved.
This results in a slightly less specific error message when OVER is used in a context where we don't accept window functions, but per discussion, it's worth it to get the benefit of not needing to reserve this keyword any more. This same refactoring will also let us avoid reserving some other keywords that we expect to add in upcoming patches (specifically, IGNORE, RESPECT, and FILTER). Troels Nielsen, with minor changes by me
Diffstat (limited to 'src/include/parser')
-rw-r--r--src/include/parser/kwlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/parser/kwlist.h b/src/include/parser/kwlist.h
index 68a13b7a7ba..b3d72a9ae3b 100644
--- a/src/include/parser/kwlist.h
+++ b/src/include/parser/kwlist.h
@@ -270,7 +270,7 @@ PG_KEYWORD("or", OR, RESERVED_KEYWORD)
PG_KEYWORD("order", ORDER, RESERVED_KEYWORD)
PG_KEYWORD("out", OUT_P, COL_NAME_KEYWORD)
PG_KEYWORD("outer", OUTER_P, TYPE_FUNC_NAME_KEYWORD)
-PG_KEYWORD("over", OVER, TYPE_FUNC_NAME_KEYWORD)
+PG_KEYWORD("over", OVER, UNRESERVED_KEYWORD)
PG_KEYWORD("overlaps", OVERLAPS, TYPE_FUNC_NAME_KEYWORD)
PG_KEYWORD("overlay", OVERLAY, COL_NAME_KEYWORD)
PG_KEYWORD("owned", OWNED, UNRESERVED_KEYWORD)