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

From Greg Stark
Subject Re: proposal: rounding up time value less than its unit.
Date
Msg-id CAM-w4HMyvEggFhTp6wnVtFuqo-3+=fK00-vsNmLnD=unUhdaMQ@mail.gmail.com
Whole thread Raw
In response to Re: proposal: rounding up time value less than its unit.  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Responses Re: proposal: rounding up time value less than its unit.  (David Johnston <david.g.johnston@gmail.com>)
List pgsql-hackers
<p dir="ltr">Fwiw I agree with TL2. The simplest, least surprising behaviour to explain to users is to say we round to
nearestand if that means we rounded to zero (or another special value) we throw an error. We could list the minimum
valuein pg_settings and maybe in documentation.<p dir="ltr">-- <br /> greg 

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BRIN indexes - TRAP: BadArgument
Next
From: Heikki Linnakangas
Date:
Subject: Re: add modulo (%) operator to pgbench