Re: current_timestamp without TZ in CREATE table - Mailing list pgsql-general

From Tom Lane
Subject Re: current_timestamp without TZ in CREATE table
Date
Msg-id 4681.1040109891@sss.pgh.pa.us
Whole thread Raw
In response to current_timestamp without TZ in CREATE table  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
List pgsql-general
Jean-Christian Imbeault <jc@mega-bucks.co.jp> writes:
> 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

Square brackets mean an array.  I think you meant timestamp(0).

            regards, tom lane

pgsql-general by date:

Previous
From: Jean-Christian Imbeault
Date:
Subject: current_timestamp without TZ in CREATE table
Next
From: Jean-Christian Imbeault
Date:
Subject: Re: current_timestamp without TZ in CREATE table