Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVKBh-0004Z1-OQ for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Aug 2016 15:03:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVKBg-0004aj-PZ for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Aug 2016 15:03:56 +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 1bVKB2-0003sb-OA for pgsql-bugs@postgresql.org; Thu, 04 Aug 2016 15:03:16 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVKAy-0004Zr-T0 for pgsql-bugs@postgresql.org; Thu, 04 Aug 2016 15:03:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id BD9AB21C294E; Thu, 4 Aug 2016 18:03:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qhK4i2uay7EJ; Thu, 4 Aug 2016 18:03:09 +0300 (MSK) Received: from fujitsu (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 8040421C28C5; Thu, 4 Aug 2016 18:03:09 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1470322989; bh=iFC7rSKfkMXT3eb2KUmFRxU/XZZaDLxvbDudG5UDAWQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=EAeyZJyAPky+tgV6Apa6rLgg5YEBjG9Y9QwWa8WkszPI9NeEgYA5q1mnagvjUu/ty F085KE9dZkB5E+jt+YlWicKdjuUMcysV6LZst96h9ODrs8hkouPMts8DIVM9o+AsiI jSiDhc6INywLyltxRK/MMHRu/F2GX/DyEA3zxAFk= Date: Thu, 4 Aug 2016 18:03:09 +0300 From: Aleksander Alekseev To: "David G. Johnston" Cc: =?UTF-8?B?55SE5piO5rSL?= , pgsql-bugs Subject: Re: Re: [BUGS] Return value error =?UTF-8?B?b2bigJh0b190?= =?UTF-8?B?aW1lc3RhbXDigJk=?= Message-ID: <20160804180309.28bd486a@fujitsu> In-Reply-To: References: <379c479a.f0c.15653e44bba.Coremail.zhenmingyang@yeah.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -3.2 (---) 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 >> postgres=3D# 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=3D# > =E2=80=8BWorking as designed...=E2=80=8B 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. --=20 Best regards, Aleksander Alekseev --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs