Re: RI triggers and schemas

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: RI triggers and schemas
Дата
Msg-id 20020401093707.J23284-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: RI triggers and schemas  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: timeout implementation issues
Следующее
От: Jessica Perry Hekman
Дата:
Сообщение: Re: timeout implementation issues