Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1al5FK-0003V2-I0 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2016 01:48:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1al5FK-0007YP-0S for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Mar 2016 01:48:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1al5Dy-00062L-CC for pgsql-hackers@postgresql.org; Wed, 30 Mar 2016 01:47:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1al5Dr-00025G-79 for pgsql-hackers@postgresql.org; Wed, 30 Mar 2016 01:47:09 +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 u2U1l0rc007107; Tue, 29 Mar 2016 21:47:00 -0400 From: Tom Lane To: Michael Paquier cc: PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: Allow to_timestamp(float8) to convert float infinity to timestam In-reply-to: References: <4445.1459300416@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Wed, 30 Mar 2016 10:22:20 +0900" Date: Tue, 29 Mar 2016 21:47:00 -0400 Message-ID: <7106.1459302420@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Michael Paquier writes: > On Wed, Mar 30, 2016 at 10:13 AM, Tom Lane wrote: >> I'm inclined to just drop the out-of-range test cases. They're not that >> useful IMO, and alternate expected-files are a real PITA for maintenance. > Hm. Actually, they are quite useful to check error boundaries, so why > not just simplifying the error message to "timestamp out of range" and > remove the value from it? Meh. I realize that there are a lot of places where we just say "timestamp out of range" rather than trying to give a specific value, but it's really contrary to our message style guidelines to not print the complained-of value. I think we should leave the ereport calls as-is and remove the test cases; to do otherwise is putting the regression tests ahead of users. The upper-boundary test is quite dubiously useful anyway, because it has to test a value that's very far away from where the boundary actually is in most builds. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers