Re: GIN indexed unique constraint?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Allan Kamau <kamauallan(at)gmail(dot)com>
Cc: Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: GIN indexed unique constraint?
Date: 2021-06-27 18:28:31
Message-ID: CAKFQuwYZ1TgtN0KRxbFxJofDQub93ay9SmHPNV3t1rP45xGy1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Jun 27, 2021 at 11:18 AM Allan Kamau <kamauallan(at)gmail(dot)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."

https://www.postgresql.org/docs/current/btree-gin.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-06-27 18:41:09 Re: GIN indexed unique constraint?
Previous Message Allan Kamau 2021-06-27 18:18:30 GIN indexed unique constraint?