Re: [COMMITTERS] pgsql: Allow to_timestamp(float8) to convert float infinity to timestam

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Allow to_timestamp(float8) to convert float infinity to timestam
Date: 2016-03-30 01:56:18
Message-ID: CAB7nPqSuvQDVAnnw++9CHmrY1bvNrTOxA5OFgZDxrFVGFZJm=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Wed, Mar 30, 2016 at 10:47 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
>> On Wed, Mar 30, 2016 at 10:13 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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.

OK, I won't fight more on that.
--
Michael

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-03-30 02:23:44 pgsql: Remove just-added tests for to_timestamp(float8) with out-of-ran
Previous Message Robert Haas 2016-03-30 01:49:49 Re: pgsql: Add new replication mode synchronous_commit = 'remote_apply'.

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2016-03-30 02:03:29 Re: Please correct/improve wiki page about abbreviated keys bug
Previous Message Robert Haas 2016-03-30 01:49:25 Re: Relation extension scalability