Re: ALTER TABLE ... SET DEFAULT - Mailing list pgsql-admin

From Tom Lane
Subject Re: ALTER TABLE ... SET DEFAULT
Date
Msg-id 12004.1018657800@sss.pgh.pa.us
Whole thread Raw
In response to Re: ALTER TABLE ... SET DEFAULT  (Brian McCane <bmccane@mccons.net>)
Responses Re: ALTER TABLE ... SET DEFAULT
List pgsql-admin
Brian McCane <bmccane@mccons.net> writes:
> Been there, done that :).  It put the current epoch value in as the
> default value for updated.

That would suggest that you marked since_epoch() as cachable.  Wrong
thing to do, if you want it evaluated again every time the default
is used.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: A *short* planner question
Next
From: Brian McCane
Date:
Subject: Re: ALTER TABLE ... SET DEFAULT