Received: from fw.mccons.net (adsl-65-64-105-41.dsl.kscymo.swbell.net [65.64.105.41]) by postgresql.org (Postfix) with ESMTP id 74454475887 for ; Fri, 12 Apr 2002 20:19:06 -0400 (EDT) Received: (from root@localhost) by fw.mccons.net (8.11.3/8.11.4) id g3D0J9w75398; Fri, 12 Apr 2002 19:19:09 -0500 (CDT) (envelope-from bmccane@mccons.net) Received: from localhost (localhost [127.0.0.1]) by fw.mccons.net (8.11.3/8.11.4av) with ESMTP id g3D0J1j75367; Fri, 12 Apr 2002 19:19:01 -0500 (CDT) (envelope-from bmccane@mccons.net) Date: Fri, 12 Apr 2002 19:19:01 -0500 (CDT) From: Brian McCane To: Tom Lane Cc: pgsql-admin Subject: Re: ALTER TABLE ... SET DEFAULT In-Reply-To: <27183.1018620046@sss.pgh.pa.us> Message-ID: <20020412191819.B59745-100000@fw.mccons.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS perl-11 X-Razor-Spam-ID: 697d2c8e9ba44a0a3b28aa49a5797c36b88676f1 X-Archive-Number: 200204/103 X-Sequence-Number: 3991 Been there, done that :). It put the current epoch value in as the default value for updated. - brian On Fri, 12 Apr 2002, Tom Lane wrote: > > Brian McCane writes: > > alter table foo alter column updated set default 'since_epoch()' ; > > this gets the error: > > ERROR: pg_atoi: error in "since_epoch()": can't parse "since_epoch()" > > Try it without the quotes. > > regards, tom lane > Wm. Brian McCane | Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freenews.maxbaud.net/ | that open when you don't want them to. Auction http://www.sellit-here.com/ | - Roger Zelazny "Blood of Amber"