Re: ALTER TABLE ... SET DEFAULT

Поиск
Список
Период
Сортировка
От Brian McCane
Тема Re: ALTER TABLE ... SET DEFAULT
Дата
Msg-id 20020412191819.B59745-100000@fw.mccons.net
обсуждение исходный текст
Ответ на Re: ALTER TABLE ... SET DEFAULT  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ALTER TABLE ... SET DEFAULT
Список pgsql-admin
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 <bmccane@mccons.net> 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"


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

Предыдущее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: A *short* planner question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: A *short* planner question