Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbUYw-00050D-RQ for pgsql-sql@arkaria.postgresql.org; Wed, 08 Feb 2017 15:53:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbUYw-0006Bn-7t for pgsql-sql@arkaria.postgresql.org; Wed, 08 Feb 2017 15:53:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbUXy-00057g-Qx for pgsql-sql@postgresql.org; Wed, 08 Feb 2017 15:52:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbUXw-0007hp-0c for pgsql-sql@postgresql.org; Wed, 08 Feb 2017 15:52:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v18Fqchp001472; Wed, 8 Feb 2017 10:52:38 -0500 From: Tom Lane To: Mike Wes cc: pgsql-sql@postgresql.org Subject: Re: Problem wil TIMEZONE vs TIME ZONE In-reply-to: References: Comments: In-reply-to Mike Wes message dated "Wed, 08 Feb 2017 12:20:35 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1470.1486569158.1@sss.pgh.pa.us> Date: Wed, 08 Feb 2017 10:52:38 -0500 Message-ID: <1471.1486569158@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Mike Wes 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 -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql