Use floor() not rint() when reducing precision of fractional seconds in
commit5af449e98660a42d59347ec4119dec84ffb99f7e
authortgl <tgl>
Mon, 6 Jul 2009 20:29:23 +0000 (6 20:29 +0000)
committertgl <tgl>
Mon, 6 Jul 2009 20:29:23 +0000 (6 20:29 +0000)
tree6b2054fb4717f2066575a0692f4210001210dfd9
parent7392bcb8d406a739c84876813d0460f8b85952dc
Use floor() not rint() when reducing precision of fractional seconds in
timestamp_trunc, timestamptz_trunc, and interval_trunc().  This change
only affects the float-datetime case; the integer-datetime case already
behaved like truncation instead of rounding.  Per gripe from Mario Splivalo.

This is a pre-existing issue but I'm choosing not to backpatch, because
it's such a corner case and there have not been prior complaints.  The
issue is largely moot anyway given the trend towards integer datetimes.
src/backend/utils/adt/timestamp.c