Re: Unique constraint across all partitions?

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Unique constraint across all partitions?
Date: 2021-01-25 23:02:02
Message-ID: 3d00c1f4-646c-59b7-e4dc-1d51190d2139@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 1/25/21 4:44 PM, S Bob wrote:
> All;
>
>
> Is it possible to enforce a unique constraint across all partitions for
> either declarative or inheritance based partitioning? Preferably
> declarative based.

You can create unique indexes on parent tables.  Or am I misunderstanding you?

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2021-01-26 00:01:45 Re: Unique constraint across all partitions?
Previous Message S Bob 2021-01-25 22:44:32 Unique constraint across all partitions?