Re: Constraint enforcement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Demian Lessa <demian(at)lessa(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Constraint enforcement
Date: 2007-02-15 16:44:10
Message-ID: 26740.1171557850@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Demian Lessa <demian(at)lessa(dot)org> writes:
> What I'm trying to figure out is how postgre identifies the *exact* set
> of constraints to enforce for each of the different commands above, and
> the order in which these are performed (since some checks are way more
> expensive than others).

Triggers on the same event are fired in alphabetical order by "tgname".
I don't believe any particular ordering is enforced among CHECK
constraints --- but they all happen before any triggers fire.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-02-15 16:50:38 Re: postgresql 8.2 Installation error at "gmake"
Previous Message Emi Lu 2007-02-15 16:36:10 postgresql 8.2 Installation error at "gmake"