Re: Something for the TODO list: deprecating abstime and friends

From: Mark Dilger <hornschnorter(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Something for the TODO list: deprecating abstime and friends
Date: 2017-07-17 22:59:55
Message-ID: 63B7E72B-4B44-437D-91BE-80782A63BA7E@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> On Jul 17, 2017, at 3:56 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Mark Dilger <hornschnorter(at)gmail(dot)com> writes:
>> On Jul 17, 2017, at 3:12 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> Now, this should mostly work conveniently, except that we have
>>> +/-infinity (NOEND_ABSTIME/NOSTART_ABSTIME) to deal with ... It might
>>> be saner to just desupport +/-infinity for abstime.
>
>> I don't use those values, so it is no matter to me if we desupport them. It
>> seems a bit pointless, though, because we still have to handle legacy
>> values that we encounter. I assume some folks will have those values in
>> their tables when they upgrade.
>
> Well, some folks will also have pre-1970 dates in their tables, no?
> We're just blowing those off. They'll print out as some post-2038
> date or other, and too bad.
>
> Basically, the direction this is going in is that abstime will become
> an officially supported type, but its range of supported values is "not
> too many decades either way from now". If you are using it to store
> very old dates then You're Doing It Wrong, and eventually you'll get
> bitten. Given that contract, I don't see a place for +/-infinity.

Works for me.

mark

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Rofail 2017-07-17 23:24:09 Re: GSoC 2017: Foreign Key Arrays
Previous Message Tom Lane 2017-07-17 22:56:20 Re: Something for the TODO list: deprecating abstime and friends