pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Perry Smith <pedz@easesoftware.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Constraint ordering
Date: Sat, 09 Apr 2022 11:07:17 -0400
Message-ID: <4108560.1649516837@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwZggCj=faio8k-3NaRx8w_se87mFtURQdoe-YJh9tNsjQ@mail.gmail.com>
References: <77C5CA14-9BB6-42A8-B700-4CDE2D69066E@easesoftware.com>
	<CAKFQuwZggCj=faio8k-3NaRx8w_se87mFtURQdoe-YJh9tNsjQ@mail.gmail.com>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Sat, Apr 9, 2022 at 7:43 AM Perry Smith <pedz@easesoftware.com> wrote:
>> All that to ask: is there a predictable ordering of constraints?

> I'm not aware of any documentation describing constraint evaluation order.

IIRC, triggers are specified to fire in name order.  Uniqueness
constraints are not enforced by triggers though; I wouldn't care
to rely on the order in which those are checked.

			regards, tom lane





view thread (4+ messages)

Message-ID: <4108560.1649516837@sss.pgh.pa.us>
Permalink:  ../4108560.1649516837@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4108560.1649516837@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, pedz@easesoftware.com
  Subject: Re: Constraint ordering
  In-Reply-To: <4108560.1649516837@sss.pgh.pa.us>
  References: <77C5CA14-9BB6-42A8-B700-4CDE2D69066E@easesoftware.com> <CAKFQuwZggCj=faio8k-3NaRx8w_se87mFtURQdoe-YJh9tNsjQ@mail.gmail.com> <4108560.1649516837@sss.pgh.pa.us>

* 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