From: Tom Lane <tgl@sss.pgh.pa.us>
To: andrew@supernews.com
Cc: pgsql-performance@postgresql.org
Subject: Re: FK triggers misused?
Date: Sun, 15 Apr 2007 11:22:43 -0400
Message-ID: <102.1176650563@sss.pgh.pa.us> (raw)
In-Reply-To: <slrnf23eqp.10cj.andrew+nonews@atlantis.supernews.net>
References: <evqm6g$29b1$1@news.hub.org>
<26399.1176614941@sss.pgh.pa.us>
<slrnf23eqp.10cj.andrew+nonews@atlantis.supernews.net>
Andrew - Supernews <andrew+nonews@supernews.com> writes:
> Looking at current CVS code the RI check seems to be skipped on update of
> the _referred to_ table if the old and new values match, but not on update
> of the _referring_ table.
No, both sides are supposed to be tested, see lines 3350-3395 in
src/backend/commands/trigger.c. Or do you see something broken there?
It works for me in a quick test.
regards, tom lane
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew@supernews.com
Subject: Re: FK triggers misused?
In-Reply-To: <102.1176650563@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