Re: proposal: rounding up time value less than its unit.

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Gregory Smith <gregsmithpgsql(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, David Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: rounding up time value less than its unit.
Date: 2014-09-26 17:42:56
Message-ID: 20140926174256.GW16422@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Josh Berkus (josh(at)agliodbs(dot)com) wrote:
> On 09/26/2014 10:27 AM, Stephen Frost wrote:
> > I don't think anyone is argueing that we should do away with the
> > rounding rules entirely, only that we should a) require units to be
> > specified, and b) error if the value specified is below '1 unit', but
> > still non-zero, as it would then be rounded to zero.
>
> That would not be a back-portable fix.

No, certainly not. Sorry, thought that was clear..

> There are many 3rd-party tools out there (AWS RDS, for one) which do not
> use the units.

Of course. Those would need to be updated for whichever major release
introduced this requirement.

Thanks,

Stephen

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Johnston 2014-09-26 17:43:45 Re: proposal: rounding up time value less than its unit.
Previous Message Josh Berkus 2014-09-26 17:37:13 Re: proposal: rounding up time value less than its unit.