Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1baO15-0004JX-TQ for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Aug 2016 14:09:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1baO15-0000in-70 for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Aug 2016 14:09:55 +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 1baO0R-0008Ri-GO for pgsql-bugs@postgresql.org; Thu, 18 Aug 2016 14:09:15 +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 1baO0N-0003c2-Lk for pgsql-bugs@postgresql.org; Thu, 18 Aug 2016 14:09:14 +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 u7IE96I1001244; Thu, 18 Aug 2016 10:09:06 -0400 From: Tom Lane To: Francisco Olarte cc: =?UTF-8?B?55SE5piO5rSL?= , "David G. Johnston" , Aleksander Alekseev , pgsql-bugs Subject: Re: =?UTF-8?B?UmU6IFJlOiBSZTpSZTogW0JVR1NdIFJlOiBbQlVHU10gUmV0dXJuIHZhbHVlIGVycm9yIA==?= =?UTF-8?B?b2bigJh0b190aW1lc3RhbXDigJk=?= In-reply-to: References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net> <20160804180309.28bd486a@fujitsu> <6144af7f.1d1e.156982e1e21.Coremail.zhenmingyang@yeah.net> <7406.1471441778@sss.pgh.pa.us> <4f215f75.1a4e.1569d15d349.Coremail.zhenmingyang@yeah.net> Comments: In-reply-to Francisco Olarte message dated "Thu, 18 Aug 2016 15:54:36 +0200" Date: Thu, 18 Aug 2016 10:09:06 -0400 Message-ID: <1243.1471529346@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Francisco Olarte writes: > On Thu, Aug 18, 2016 at 11:57 AM, 甄明洋 wrote: >> Why don't use a unified time zone Convention ? > Given Tom said: >>> Aren't standards fun? > I suspect SQL std. mandates it. The SQL standard does mandate use of ISO convention for timestamp values. However, the use of any sort of timezone name in "SET timezone" is outside the SQL standard (or at least it was last I looked). Our timezone name support is based on the IANA (nee Olson) timezone data set, which is used by just about everybody except Microsoft, and that follows the POSIX standard. In principle we could hack up the IANA code and data so that zone names that look like POSIX names follow the ISO sign convention, but if you ask me that's just nuts. It would mean for example that "set timezone to 'PST8PDT'" inside PG would act completely differently from "TZ=PST8PDT" in the shell. That would result in more confusion not less. In short, neither of these choices were made in a vacuum. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs