From: | Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Determining caller of a function (due to a cascaded |
Date: | 2006-10-09 20:46:50 |
Message-ID: | 20061009224650.46c332f9@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-novice |
On Mon, 09 Oct 2006 16:34:09 -0400
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "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.
thx. I was wondering if *I* wasn't able to find one.
I had the same need around a month ago I ended up in adding metadata to tables and "simulating" triggers with a dynamically generated sp.
So I could define "deferred" referential integrity nearby table definitions as I was used with pk/fk triggers.
--
Ivan Sergio Borgonovo
http://www.webthatworks.it
From | Date | Subject | |
---|---|---|---|
Next Message | Hari Bhaskaran | 2006-10-09 21:05:43 | pg_autovacuum taking locks on multiple tables at the same time |
Previous Message | Tom Lane | 2006-10-09 20:34:09 | Re: Determining caller of a function (due to a cascaded FK constraint?) |
From | Date | Subject | |
---|---|---|---|
Next Message | Saranya Sivakumar | 2006-10-09 21:24:18 | Re: pg_config not found |
Previous Message | Tom Lane | 2006-10-09 20:34:09 | Re: Determining caller of a function (due to a cascaded FK constraint?) |