Re: on update set default

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: on update set default
Дата
Msg-id m3n10r6gdw.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на on update set default  ("Ben-Nes Michael" <miki@canaan.co.il>)
Список pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Doug McNaught <doug@wireboard.com> writes:
>
> > An AFTER trigger to do this should be pretty easy.
>
> It had better be a BEFORE trigger; AFTER is too late to affect the row
> that will be stored.

Ack, you're right--I was thinking in terms of updating a field in a
different table (don't ask me why).  Thanks for the correction.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

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

Предыдущее
От: Francisco Reyes
Дата:
Сообщение: Re: Questions about the upcoming 7.2?
Следующее
От: Raymond
Дата:
Сообщение: Multiple Instances