Re: GIN indexed unique constraint? - Mailing list pgsql-general

From David G. Johnston
Subject Re: GIN indexed unique constraint?
Date
Msg-id CAKFQuwYZ1TgtN0KRxbFxJofDQub93ay9SmHPNV3t1rP45xGy1w@mail.gmail.com
Whole thread Raw
In response to GIN indexed unique constraint?  (Allan Kamau <kamauallan@gmail.com>)
Responses Re: GIN indexed unique constraint?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sun, Jun 27, 2021 at 11:18 AM Allan Kamau <kamauallan@gmail.com> wrote:
Is it possible to declare a UNIQUE constraint that uses GIN indexing?


Doesn't seem to be possible.  The btree_gin extension would provide the necessary code but it states explicitly that:

"... and they lack one major feature of the standard B-tree code: the ability to enforce uniqueness."

pgsql-general by date:

Previous
From: Allan Kamau
Date:
Subject: GIN indexed unique constraint?
Next
From: Tom Lane
Date:
Subject: Re: GIN indexed unique constraint?