pgsql: interval: round values when spilling to months - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: interval: round values when spilling to months
Date
Msg-id E1mAx0N-0004uL-3T@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/95ab1e0a9db321dd796344d526457016eada027f

Modified Files
--------------
doc/src/sgml/datatype.sgml                | 25 ++++++++++++++-----------
src/backend/utils/adt/datetime.c          | 16 ++++++----------
src/interfaces/ecpg/pgtypeslib/interval.c | 16 ++++++----------
3 files changed, 26 insertions(+), 31 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: pg_upgrade: warn about extensions that need updating
Next
From: Bruce Momjian
Date:
Subject: pgsql: doc: interval spill method for units greater than months