Re: Trouble with NEW

Поиск
Список
Период
Сортировка
От David Johnston
Тема Re: Trouble with NEW
Дата
Msg-id 00b001cd65dc$0a891960$1f9b4c20$@yahoo.com
обсуждение исходный текст
Ответ на Re: Trouble with NEW  (Adrian Klaver <adrian.klaver@gmail.com>)
Ответы Re: Trouble with NEW  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
>
> 4) If you want to pull information from another table, you either need to set
> up a FOREIGN KEY relationship that you can leverage or you need to do a
> query in the trigger function that pulls in the necessary information.
>

I do not get where the "OR" comes from.  There is nothing magical about FOREIGN KEY that causes NEW magically contain
additionalvalues.  Foreign Key or not you still have to "...do a query in the trigger function...". 

David J.



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

Предыдущее
От: Luiz Damim
Дата:
Сообщение: Default value of serial fields changes after restore
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Trouble with NEW