Skip site navigation (1) Skip section navigation (2)

Re: foreign keys and RI triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>,pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: foreign keys and RI triggers
Date: 2005-05-27 15:09:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Neil Conway <neilc(at)samurai(dot)com> writes:
>> (b) it can share infrastructure with the other RI triggers.

> Such as? I don't see anything it allows us to share.

Note the ri_BuildQueryKeyFull call, and the arguments thereto.

As to the notational convenience issue, I think it's good that
RI_FKey_keyequal_upd looks almost exactly like the other RI trigger
functions.  Having it look different in order to save a couple lines
in trigger.c doesn't seem like a win to me.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2005-05-27 15:12:06
Subject: Re: A 2 phase commit weirdness
Previous:From: Mark Cave-AylandDate: 2005-05-27 15:01:00
Subject: Re: Cost of XLogInsert CRC calculations

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group