Re: proposal: rounding up time value less than its unit. - Mailing list pgsql-hackers

From David Johnston
Subject Re: proposal: rounding up time value less than its unit.
Date
Msg-id CAKFQuwZB3vGZj=QgmHUC24KKGFkvPUkOq2o_AZ8yNBdi-zjeZg@mail.gmail.com
Whole thread
In response to Re: proposal: rounding up time value less than its unit.  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On Tue, Sep 23, 2014 at 3:05 PM, Greg Stark <stark@mit.edu> wrote:

Fwiw I agree with TL2. The simplest, least surprising behaviour to explain to users is to say we round to nearest and if that means we rounded to zero (or another special value) we throw an error. We could list the minimum value in pg_settings and maybe in documentation.

​I'm not sure TL2 would agree that you are agreeing with him...

To the other point the minimum unit-less value is 1.  The unit that is applied is already listed in pg_settings​ and the documentation.  While 0 is allowed it is more of a flag than a value.

David J.

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: RLS feature has been committed
Next
From: Robert Haas
Date:
Subject: Re: Scaling shared buffer eviction