From: Aleksander Alekseev <a.alekseev@postgrespro.ru>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: 甄明洋 <zhenmingyang@yeah.net>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Re: [BUGS] Return value error of‘to_timestamp’
Date: Thu, 4 Aug 2016 18:03:09 +0300
Message-ID: <20160804180309.28bd486a@fujitsu> (raw)
In-Reply-To: <CAKFQuwYMf7Xb9yqwTMcJ67-+r7V88NkR=wKpskFM6Hykm4ZhZQ@mail.gmail.com>
References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net>
<CAKFQuwYMf7Xb9yqwTMcJ67-+r7V88NkR=wKpskFM6Hykm4ZhZQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
>> postgres=# select to_timestamp('1990-1-1 11:11:11.123456789',
>> 'YYYY-MM-DD HH24:MI:SS.US'); to_timestamp
>> -------------------------------
>> 1990-01-01 11:13:14.456789+08
>> (1 row)
>> postgres=#
> Working as designed...
Maybe it means that current design is poor. However since this behavior
is documented there are users who might depend on it. So I doubt it
will be changed any time soon.
Though I wonder maybe we should consider introducing a new set of
time-related procedures with different behavior (to_timestamp_strict?),
that would be more obvious to users.
--
Best regards,
Aleksander Alekseev
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: a.alekseev@postgrespro.ru, david.g.johnston@gmail.com, zhenmingyang@yeah.net
Subject: Re: [BUGS] Return value error of‘to_timestamp’
In-Reply-To: <20160804180309.28bd486a@fujitsu>
References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net> <CAKFQuwYMf7Xb9yqwTMcJ67-+r7V88NkR=wKpskFM6Hykm4ZhZQ@mail.gmail.com> <20160804180309.28bd486a@fujitsu>
* 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