You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doc: update documentation about EXCLUDE constraint elements.
What the documentation calls an exclude_element is an index_elem
according to gram.y, and it allows all the same options that
a CREATE INDEX column specification does. The COLLATE patch
neglected to update the CREATE/ALTER TABLE docs about that,
and later the opclass-parameters patch made the same oversight.
Add those options to the syntax synopses, and polish the
associated text a bit.
Back-patch to v13 where opclass parameters came in. We could
update v12 with just the COLLATE omission, but it doesn't quite
seem worth the trouble at this point.
Shihao Zhong, reviewed by Daniel Vérité, Shubham Khanna and myself
Discussion: https://postgr.es/m/CAGRkXqShbVyB8E3gapfdtuwiWTiK=Q67Qb9qwxu=+-w0w46EBA@mail.gmail.com
<phrase><replaceable class="parameter">referential_action</replaceable> in a <literal>FOREIGN KEY</literal>/<literal>REFERENCES</literal> constraint is:</phrase>
<phrase><replaceable class="parameter">referential_action</replaceable> in a <literal>FOREIGN KEY</literal>/<literal>REFERENCES</literal> constraint is:</phrase>
110
110
@@ -1086,6 +1086,7 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
1086
1086
no two rows in the table contain overlapping circles
1087
1087
(see <xref linkend="datatype-geometric"/>) by using the
1088
1088
<literal>&&</literal> operator.
1089
+
The operator(s) are required to be commutative.
1089
1090
</para>
1090
1091
1091
1092
<para>
@@ -1094,11 +1095,10 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
1094
1095
appropriate operator class
1095
1096
(see <xref linkend="indexes-opclass"/>) for the index access
1096
1097
method <replaceable>index_method</replaceable>.
1097
-
The operators are required to be commutative.
1098
1098
Each <replaceable class="parameter">exclude_element</replaceable>
1099
-
can optionally specify an operator class and/or ordering options;
1100
-
these are described fully under
1101
-
<xref linkend="sql-createindex"/>.
1099
+
defines a column of the index, so it can optionally specify a collation,
1100
+
an operator class, operator class parameters, and/or ordering options;
1101
+
these are described fully under <xref linkend="sql-createindex"/>.
0 commit comments