Re: unique index with several columns

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexey M Boltenkov <padrebolt(at)yandex(dot)ru>
Cc: "Voillequin, Jean-Marc" <Jean-Marc(dot)Voillequin(at)moodys(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-sql(at)lists(dot)postgresql(dot)org" <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Re: unique index with several columns
Date: 2022-03-04 18:32:05
Message-ID: 3966274.1646418725@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Alexey M Boltenkov <padrebolt(at)yandex(dot)ru> writes:
> You need the new v15 feature:
> NULLS [NOT] DISTINCT

That won't replicate the behavior shown by the OP though.
In particular, not the weird inconsistency for all-null rows.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Klaus Kaisersberger 2022-03-04 18:57:24 RE: unique index with several columns
Previous Message Alexey M Boltenkov 2022-03-04 18:26:03 Re: unique index with several columns