]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: clarify that CREATE TABLE discards redundant unique constraints.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Dec 2020 18:09:48 +0000 (13:09 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 8 Dec 2020 18:09:48 +0000 (13:09 -0500)
commit2bf5d1a74a33ed45939ed4c16054aee51ab65540
tree3c099bc5742c74d00c242d78e3380261869d029c
parent3410a9b57062609ecd823532847f622d862ba9ec
Doc: clarify that CREATE TABLE discards redundant unique constraints.

The SQL standard says that redundant unique constraints are disallowed,
but we long ago decided that throwing an error would be too
user-unfriendly, so we just drop redundant ones.  The docs weren't very
clear about that though, as this behavior was only explained for PRIMARY
KEY vs UNIQUE, not UNIQUE vs UNIQUE.

While here, I couldn't resist doing some copy-editing and markup-fixing
on the adjacent text about INCLUDE options.

Per bug #16767 from Matthias vd Meent.

Discussion: https://postgr.es/m/16767-1714a2056ca516d0@postgresql.org
doc/src/sgml/ref/create_table.sgml