pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 甄明洋 <zhenmingyang@yeah.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Francisco Olarte <folarte@peoplecall.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Aleksander Alekseev <a.alekseev@postgrespro.ru>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re:Re:  Re: Re: Re:Re: [BUGS] Re: [BUGS] Return value error of‘to_timestamp’
Date: Fri, 19 Aug 2016 11:18:37 +0800 (CST)
Message-ID: <16d276c1.9fb.156a0ceba46.Coremail.zhenmingyang@yeah.net> (raw)
In-Reply-To: <1243.1471529346@sss.pgh.pa.us>
References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net>
	<CAKFQuwYMf7Xb9yqwTMcJ67-+r7V88NkR=wKpskFM6Hykm4ZhZQ@mail.gmail.com>
	<20160804180309.28bd486a@fujitsu>
	<CAKFQuwa1eWdO-7Y-uqRTGrdwj0H=N6iz5dLohLy7BCeLG3=qrw@mail.gmail.com>
	<6144af7f.1d1e.156982e1e21.Coremail.zhenmingyang@yeah.net>
	<7406.1471441778@sss.pgh.pa.us>
	<4f215f75.1a4e.1569d15d349.Coremail.zhenmingyang@yeah.net>
	<CA+bJJbxQb+M2hojwid4iOf8c8=MJEndFp+zw5t4Y59pObzVFoA@mail.gmail.com>
	<1243.1471529346@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

 thanks for you answer
 thanks !





在 2016-08-18 22:09:06,"Tom Lane" <tgl@sss.pgh.pa.us> 写道:
>Francisco Olarte <folarte@peoplecall.com> writes:
>> On Thu, Aug 18, 2016 at 11:57 AM, 甄明洋 <zhenmingyang@yeah.net> 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


view thread (10+ messages)

Message-ID: <16d276c1.9fb.156a0ceba46.Coremail.zhenmingyang@yeah.net>
Permalink:  ../16d276c1.9fb.156a0ceba46.Coremail.zhenmingyang@yeah.net/
Also on:    postgresql.org/message-id/16d276c1.9fb.156a0ceba46.Coremail.zhenmingyang@yeah.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: zhenmingyang@yeah.net, tgl@sss.pgh.pa.us, folarte@peoplecall.com, david.g.johnston@gmail.com, a.alekseev@postgrespro.ru
  Subject: Re: [BUGS] Re: [BUGS] Return value error of‘to_timestamp’
  In-Reply-To: <16d276c1.9fb.156a0ceba46.Coremail.zhenmingyang@yeah.net>
  References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net> <CAKFQuwYMf7Xb9yqwTMcJ67-+r7V88NkR=wKpskFM6Hykm4ZhZQ@mail.gmail.com> <20160804180309.28bd486a@fujitsu> <CAKFQuwa1eWdO-7Y-uqRTGrdwj0H=N6iz5dLohLy7BCeLG3=qrw@mail.gmail.com> <6144af7f.1d1e.156982e1e21.Coremail.zhenmingyang@yeah.net> <7406.1471441778@sss.pgh.pa.us> <4f215f75.1a4e.1569d15d349.Coremail.zhenmingyang@yeah.net> <CA+bJJbxQb+M2hojwid4iOf8c8=MJEndFp+zw5t4Y59pObzVFoA@mail.gmail.com> <1243.1471529346@sss.pgh.pa.us> <16d276c1.9fb.156a0ceba46.Coremail.zhenmingyang@yeah.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox