interval: round values when spilling to months
Bruce Momjian <bruce@momjian.us>
interval: round values when spilling to months Previously spilled units greater than months were truncated to months. Also document the spill behavior. Reported-by: Bryn Llewelly Discussion: https://postgr.es/m/BDAE4B56-3337-45A2-AC8A-30593849D6C0@yugabyte.com Backpatch-through: master
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/datatype.sgml | modified | +14 −11 |
| src/backend/utils/adt/datetime.c | modified | +6 −10 |
| src/interfaces/ecpg/pgtypeslib/interval.c | modified | +6 −10 |