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

Re: Determining caller of a function (due to a cascaded FK constraint?)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Lenorovitz, Joel" <Joel(dot)Lenorovitz(at)usap(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: Determining caller of a function (due to a cascaded FK constraint?)
Date: 2006-10-09 20:34:09
Message-ID: 6644.1160426049@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
"Lenorovitz, Joel" <Joel(dot)Lenorovitz(at)usap(dot)gov> writes:
> I want to have a trigger that will copy some data from a table in one
> schema to an analogous table in another schema every time a record is
> modified UNLESS the modification is the result of a cascaded foreign key
> constraint.

Sorry, there isn't any reasonable way for a trigger to tell that.

			regards, tom lane

In response to

Responses

pgsql-novice by date

Next:From: Ivan Sergio BorgonovoDate: 2006-10-09 20:46:50
Subject: Re: Determining caller of a function (due to a cascaded
Previous:From: Tom LaneDate: 2006-10-09 20:30:05
Subject: Re: pg_config not found

pgsql-general by date

Next:From: Ivan Sergio BorgonovoDate: 2006-10-09 20:46:50
Subject: Re: Determining caller of a function (due to a cascaded
Previous:From: pobox@verysmall.orgDate: 2006-10-09 19:36:10
Subject: plpgsql handling a set of values

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