doc: Update SQL keywords for SQL:2016 technical corrigenda
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 10 May 2022 18:31:13 +0000 (20:31 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 10 May 2022 18:31:13 +0000 (20:31 +0200)
Several keywords were missing or misclassified in the original
SQL:2016 standard.  This has been corrected in later technical
corrigenda.  This change updates the PostgreSQL documentation
accordingly.

This also fixes a mistake in 606948b058d: The keywords JSON_SCALAR and
JSON_SERIALIZE added there are not from SQL:2016 but from future
SQL:202x, so they don't belong in that list yet.

(606948b058d also added JSON to the reserved list, which is what the
corrigendum also does, but failed to remove it from the nonreserved
list.)

doc/src/sgml/keywords/sql2016-02-nonreserved.txt
doc/src/sgml/keywords/sql2016-02-reserved.txt

index f39e52e475d7faee33639b4b2e56eb3ecb87487d..9edcbce49ecb81ffbd743a7fca4d342c3899aa02 100644 (file)
@@ -100,7 +100,6 @@ INSTANTIABLE
 INSTEAD
 INVOKER
 ISOLATION
-JSON
 K
 KEEP
 KEY
@@ -115,6 +114,7 @@ M
 MAP
 MATCHED
 MAXVALUE
+MEASURES
 MESSAGE_LENGTH
 MESSAGE_OCTET_LENGTH
 MESSAGE_TEXT
@@ -131,10 +131,12 @@ NFD
 NFKC
 NFKD
 NORMALIZED
+NULL_ORDERING
 NULLABLE
 NULLS
 NUMBER
 OBJECT
+OCCURRENCE
 OCTETS
 OPTION
 OPTIONS
@@ -158,11 +160,14 @@ PASS
 PASSING
 PAST
 PATH
+PERMUTE
+PIPE
 PLACING
 PLAN
 PLI
 PRECEDING
 PRESERVE
+PREV
 PRIOR
 PRIVATE
 PRIVILEGES
@@ -196,6 +201,7 @@ SCOPE_SCHEMA
 SECTION
 SECURITY
 SELF
+SEMANTICS
 SEQUENCE
 SERIALIZABLE
 SERVER_NAME
@@ -203,6 +209,7 @@ SESSION
 SETS
 SIMPLE
 SIZE
+SORT_DIRECTION
 SOURCE
 SPACE
 SPECIFIC_NAME
@@ -232,6 +239,7 @@ UNBOUNDED
 UNCOMMITTED
 UNCONDITIONAL
 UNDER
+UNMATCHED
 UNNAMED
 USAGE
 USER_DEFINED_TYPE_CATALOG
index 7ba42083980902562746bd7ef0002059a7acd497..7e1a5e4d893d0ef0d4de3a46dfe80a68d6f4f037 100644 (file)
@@ -1,4 +1,5 @@
 ABS
+ABSENT
 ACOS
 ALL
 ALLOCATE
@@ -163,8 +164,6 @@ JSON_EXISTS
 JSON_OBJECT
 JSON_OBJECTAGG
 JSON_QUERY
-JSON_SCALAR
-JSON_SERIALIZE
 JSON_TABLE
 JSON_TABLE_PRIMITIVE
 JSON_VALUE