pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paesold <mpaesold@gmx.at>
To: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: CHECKS vs. BEFORE INSERT OR UPDATE TRIGGER
Date: Mon, 16 Dec 2002 17:56:31 +0100
Message-ID: <009301c2a524$15e39fc0$4201a8c0@beeblebrox> (raw)
References: <20021216164116.77643.qmail@web80314.mail.yahoo.com>

Ludwig Lim <lud_nowhere_man@yahoo.com> wrote:

>    I am just wondering. Which one is executed first:
> CHECK Constraints or BEFORE INSERT OR UPDATE TRIGGER?

First the BEFORE... TRIGGERs, then the CHECK contraints,
so you definetly can change a row in a trigger to match
the contraints...

Regards,
Michael Paesold



view thread (2+ messages)

Message-ID: <009301c2a524$15e39fc0$4201a8c0@beeblebrox>
Permalink:  ../009301c2a524$15e39fc0$4201a8c0@beeblebrox/
Also on:    postgresql.org/message-id/009301c2a524$15e39fc0$4201a8c0@beeblebrox

 · 

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-sql@postgresql.org
  Cc: mpaesold@gmx.at, lud_nowhere_man@yahoo.com
  Subject: Re: CHECKS vs. BEFORE INSERT OR UPDATE TRIGGER
  In-Reply-To: <009301c2a524$15e39fc0$4201a8c0@beeblebrox>

* 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