From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Allow to_timestamp(float8) to convert float infinity to timestam
Date: Tue, 29 Mar 2016 21:47:00 -0400
Message-ID: <7106.1459302420@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqRUvnbAsbSU_Ra56tFkKYhpY700M-S1pG7dHaUAKGsHiA@mail.gmail.com>
References: <E1al0tS-0000cn-8y@gemulon.postgresql.org>
<CAB7nPqQRbFsDmvwescsnTjKioUm9qK1moWSMZHDrPSYJxnd0Rg@mail.gmail.com>
<4445.1459300416@sss.pgh.pa.us>
<CAB7nPqRUvnbAsbSU_Ra56tFkKYhpY700M-S1pG7dHaUAKGsHiA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Michael Paquier <michael.paquier@gmail.com> writes:
> On Wed, Mar 30, 2016 at 10:13 AM, Tom Lane <tgl@sss.pgh.pa.us> 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
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Allow to_timestamp(float8) to convert float infinity to timestam
In-Reply-To: <7106.1459302420@sss.pgh.pa.us>
References: <E1al0tS-0000cn-8y@gemulon.postgresql.org> <CAB7nPqQRbFsDmvwescsnTjKioUm9qK1moWSMZHDrPSYJxnd0Rg@mail.gmail.com> <4445.1459300416@sss.pgh.pa.us> <CAB7nPqRUvnbAsbSU_Ra56tFkKYhpY700M-S1pG7dHaUAKGsHiA@mail.gmail.com> <7106.1459302420@sss.pgh.pa.us>
* 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