Re: Constraint Trigger's referenced_table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Constraint Trigger's referenced_table
Дата
Msg-id 13985.1198437624@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Constraint Trigger's referenced_table  (Richard Broersma Jr <rabroersma@yahoo.com>)
Ответы Re: Constraint Trigger's referenced_table  (Richard Broersma Jr <rabroersma@yahoo.com>)
Список pgsql-general
Richard Broersma Jr <rabroersma@yahoo.com> writes:
> --- On Sat, 12/22/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> No, the purpose is to support foreign-key triggers.  FK constraints are
>> implemented via cooperating triggers on the two tables, and
>> each trigger has to be able to look at the other table.

> When you say "each trigger has to be able to look" do you mean that each trigger needs to be notified when other
tablehas records that are inserted/updated/deleted? 

No, each trigger fires for events in its own table.  It then has to go
look at the other table to see if the FK constraint holds (and,
depending on which trigger you are talking about, perhaps make it hold
by changing the other table).

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgres UTC different from perl?
Следующее
От: "Martin Gainty"
Дата:
Сообщение: Re: pgsql cannot read utf8 files moved from windows correctly!