Re: dump and schema

Поиск
Список
Период
Сортировка
От Olivier Hubaut
Тема Re: dump and schema
Дата
Msg-id 3FDED01A.8090009@scmbb.ulb.ac.be
обсуждение исходный текст
Ответ на Re: dump and schema  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: dump and schema  (Peter Eisentraut <peter_e@gmx.net>)
Re: dump and schema  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Tom Lane wrote:

> van Elsacker Frans <fve@atbib.be> writes:
> 
>>All my tables (more than 100) have a field datumi of type date default 
>>today, as this example:
>>CREATE TABLE tabel (
>>     ....
>>     datumi date DEFAULT 'today',
>>     ....
>>);
> 
> 
> This does not work anymore in PG 7.4.  You need something like
> 
>     datumi date DEFAULT CURRENT_DATE,
> 
>             regards, tom lane
> 
I think this won't get the same result he expects. As I know, the 
CURRENT_DATE will always give the current day, not the day you inserted 
the row.

I think the now()::date seems to be a better way to translate the 
'today' value.

-- 
Ci-git une signature avortee.
** RIP **


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: arrays in pl/pgsql
Следующее
От: "Alessandro Depase"
Дата:
Сообщение: failed to build any 5-way joins