Re: on update set default - Mailing list pgsql-general

From Doug McNaught
Subject Re: on update set default
Date
Msg-id m3n10r6gdw.fsf@belphigor.mcnaught.org
Whole thread Raw
In response to on update set default  ("Ben-Nes Michael" <miki@canaan.co.il>)
List 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 by date:

Previous
From: Francisco Reyes
Date:
Subject: Re: Questions about the upcoming 7.2?
Next
From: Raymond
Date:
Subject: Multiple Instances