current_timestamp without TZ in CREATE table

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема current_timestamp without TZ in CREATE table
Дата
Msg-id 3DFECC78.5080108@mega-bucks.co.jp
обсуждение исходный текст
Ответы Re: current_timestamp without TZ in CREATE table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I get the following error while trying to create a table:

JC=# create table test (t timestamp[0] default current_timestamp(0));
ERROR:  Column "t" is of type timestamp without time zone[] but default
expression is of type timestamp with time zone You will need to rewrite
or cast the expression

What is the proper syntax to declare the default to be without time zone?

Thanks,

JC


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: How to access deleted but not vacuum'ed tuples?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: current_timestamp without TZ in CREATE table