Re: [SQL] Problem wil TIMEZONE vs TIME ZONE - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] Problem wil TIMEZONE vs TIME ZONE
Date
Msg-id 1471.1486569158@sss.pgh.pa.us
Whole thread Raw
In response to [SQL] Problem wil TIMEZONE vs TIME ZONE  (Mike Wes <mikeewes@gmail.com>)
List pgsql-sql
Mike Wes <mikeewes@gmail.com> writes:
> Can anybody clarify the following behaviour of pgsql? A Windows user in our
> project is not able to execute a create table command caused by the
> timestamp field log_created using 'TIME ZONE' (giant_log2), but must
> explict use 'TIMEZONE' (giant_log3). This is an issue while we use
> liquibase in our project. Any ideas why this is happening?

That sounds quite backwards.  TIMESTAMP WITH TIME ZONE is the SQL-standard
way of spelling the type name.  TIMESTAMP WITH TIMEZONE is not in the
standard and it's not accepted by Postgres either, as you can easily
prove by experiment:

regression=# create table foo(f1 TIMESTAMP WITH TIMEZONE);
ERROR:  syntax error at or near "WITH"
LINE 1: create table foo(f1 TIMESTAMP WITH TIMEZONE);                                     ^
regression=# create table foo(f1 TIMESTAMP WITH TIME ZONE);
CREATE TABLE

I think you must've had some confusion as to who issued which
command.
        regards, tom lane



pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [SQL] Problem wil TIMEZONE vs TIME ZONE
Next
From: Herwig Goemans
Date:
Subject: [SQL] function source code not returning from inside a pgsql function.