pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Unique constraint across all partitions?
Date: Mon, 25 Jan 2021 17:02:02 -0600
Message-ID: <3d00c1f4-646c-59b7-e4dc-1d51190d2139@gmail.com> (raw)
In-Reply-To: <e46db75f-02fc-1a79-5d04-92bc5ea05216@quadratum-braccas.com>
References: <e46db75f-02fc-1a79-5d04-92bc5ea05216@quadratum-braccas.com>

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.





view thread (11+ messages)  latest in thread

Message-ID: <3d00c1f4-646c-59b7-e4dc-1d51190d2139@gmail.com>
Permalink:  ../3d00c1f4-646c-59b7-e4dc-1d51190d2139@gmail.com/
Also on:    postgresql.org/message-id/3d00c1f4-646c-59b7-e4dc-1d51190d2139@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Unique constraint across all partitions?
  In-Reply-To: <3d00c1f4-646c-59b7-e4dc-1d51190d2139@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox