Doc: update documentation about EXCLUDE constraint elements.
commita690920015bddc9c20f93d1a828c53ac3c21e489
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Apr 2024 19:36:08 +0000 (7 15:36 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Apr 2024 19:36:08 +0000 (7 15:36 -0400)
tree49ea18c4a2fbb6a1b3afa535126f64f7bef3dc9d
parentdfe402f955be8e7676e4da86517b8cdf75a072a2
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
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/create_table.sgml