Re: timestamp goober

Поиск
Список
Период
Сортировка
От Manuel Sugawara
Тема Re: timestamp goober
Дата
Msg-id m3lmrh2kht.fsf@dep1.fciencias.unam.mx
обсуждение исходный текст
Ответ на timestamp goober  (Culley Harrelson <culleyharrelson@yahoo.com>)
Список pgsql-general
Culley Harrelson <culleyharrelson@yahoo.com> writes:

> columns with default timestamp('now') see to be
> defaulting to the time I started posgresql!

try using: default 'now' instead of: default timestamp('now') in your
table definitions. The latter is evaluated by postgres just once, when
the table is installed, instead of each time a tuple is inserted.

HTH,
Manuel.

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

Предыдущее
От: Brice Ruth
Дата:
Сообщение: Re: [SQL] Query never returns ...
Следующее
От: Emmanuel Pierre
Дата:
Сообщение: serious performance problem