Re: Note new NULLS NOT DISTINCT on unique index tutorial page - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Note new NULLS NOT DISTINCT on unique index tutorial page
Date
Msg-id CADkLM=dZ8pqbx7wLKKwxTUH31_5uZ9Bc7t0bDQYc3fWY+aJBQw@mail.gmail.com
Whole thread Raw
In response to Note new NULLS NOT DISTINCT on unique index tutorial page  (David Gilman <davidgilman1@gmail.com>)
Responses Re: Note new NULLS NOT DISTINCT on unique index tutorial page
List pgsql-hackers
On Wed, Apr 12, 2023 at 10:40 AM David Gilman <davidgilman1@gmail.com> wrote:
The SQL Language part of the docs has a brief page on unique indexes.
It doesn't mention the new NULLS NOT DISTINCT functionality on unique
indexes and this is a good place to mention it, as it already warns
the user about the old/default behavior.


I'm ok with the wording as-is, but perhaps we can phrase it as "distinct" vs "not equal", thus leaning into the syntax a bit:

By default, null values in a unique column are considered distinct, allowing multiple nulls in the column.

or maybe

By default, null values in a unique column are considered <literal>DISTINCT</literal>, allowing multiple nulls in the column.

pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PATCH] Add `verify-system` sslmode to use system CA pool for server cert
Next
From: Tom Lane
Date:
Subject: Re: v16dev: TRAP: failed Assert("size > SizeOfXLogRecord"), File: "xlog.c", Line: 1055, PID: 13564