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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-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

Browse pgsql-general by date

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

Browse pgsql-novice by date

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