Re: Constraint Trigger's referenced_table

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: General PostgreSQL List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Constraint Trigger's referenced_table
Date: 2007-12-22 21:42:50
Message-ID: 847623.44350.qm@web31812.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- On Sat, 12/22/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> It doesn't. That table OID is just stored for the
> trigger function
> to use if it wants to.

I see. I was thinking that the FROM clause of the Constraint Trigger would allow tuple modifications from either the ON table or FROM table to raise the raise the trigger.

So is the purpose of knowing the reference_table OID, is that it helps to generalize the logic of the CONSTRAINT TRIGGERS?

Regards,
Richard Broersma Jr.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-12-22 21:46:05 Re: Constraint Trigger's referenced_table
Previous Message Alvaro Herrera 2007-12-22 21:26:42 Re: Warm standby system - FATAL: the database system is starting up