Re: Nulls Not Distinct in Unique Indexes secton
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Kirk Parker <khp@equatoria.us>, pgsql-docs@lists.postgresql.org
Date: 2023-03-16T19:48:58Z
Lists: pgsql-docs
Attachments
- 0001-Mention-NULLS-NOT-DISTINCT-in-the-SQL-documentation.patch (text/x-patch) patch 0001
On Tue, 2023-03-14 at 08:24 -0700, Kirk Parker wrote: > The Unique Indexes section (https://www.postgresql.org/docs/15/indexes-unique.html) > does not mention the new NULLS [ NOT ] DISTINCT capability of indexes > (https://www.postgresql.org/docs/15/sql-createindex.html), and it probably should. > > Specifically, it has the exact wording from previous versions (emphasis added): > > When an index is declared unique, multiple table > rows with equal indexed values are not allowed. > *Null values are not considered equal*. > > We should consider adding "unless the NULLS NOT DISTINCT clause is used when > creating the index", or something to that effect. +1 Here is a patch for that. Yours, Laurenz Albe
Commits
-
doc: spell out full productname
- bdc8d803e8e0 16.0 landed