Skip site navigation (1) Skip section navigation (2)

Re: ALTER TABLE ... SET DEFAULT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brian McCane <bmccane(at)mccons(dot)net>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: ALTER TABLE ... SET DEFAULT
Date: 2002-04-13 00:30:00
Message-ID: 12004.1018657800@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Brian McCane <bmccane(at)mccons(dot)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

In response to

Responses

pgsql-admin by date

Next:From: Brian McCaneDate: 2002-04-13 00:43:17
Subject: Re: ALTER TABLE ... SET DEFAULT
Previous:From: Tom LaneDate: 2002-04-13 00:27:56
Subject: Re: A *short* planner question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group