Re: RI triggers and schemas - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: RI triggers and schemas
Date
Msg-id 20020401093707.J23284-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: RI triggers and schemas  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, 1 Apr 2002, Tom Lane wrote:

> Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> > Well, there is another place where the current name behavior
> > causes problems so we'd need to be sticking in the fully qualified
> > name, otherwise creating a table in your search path earlier than
> > the intended table would break the constraint.  This currently already
> > happens with temp tables.
>
> But the point is that the table name would be resolved to OID once at
> CREATE TRIGGER time (or when the original FK constraint is created).
> After that, it's up to the trigger to construct queries using the
> fully-qualified table name.  This should eliminate the temp table
> gotcha as well as change-of-search-path issues.

Sorry, I must have misunderstood you. I thought you were backing away
from changing the arguments that were created for the trigger. Or did
you mean using the stored info on the two oids we already have in the
record (tgrelid and tgconstrrelid)?



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: timeout implementation issues
Next
From: Jessica Perry Hekman
Date:
Subject: Re: timeout implementation issues