Re: TODO: trigger features

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: TODO: trigger features
Дата
Msg-id 3F30026B.5080604@pse-consulting.de
обсуждение исходный текст
Ответ на Re: TODO: trigger features  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: TODO: trigger features  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:

>Andreas Pflug <pgadmin@pse-consulting.de> writes:
>  
>
>>- Implement a way to enable triggers to check which columns are affected 
>>by the triggering statement.
>>    
>>
>
>This can already be done by comparing old and new values, no?
>
No, this is not the case.

UPDATE foo SET x=x, y=y
is different from
UPDATE foo SET y=y
if triggers maintaining x are involved. I had this case, and had to do 
quite weird stuff to implement this.

Regards,
Andreas




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: TODO: trigger features
Следующее
От: Tom Lane
Дата:
Сообщение: Re: TODO: trigger features