pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: interval:  round values when spilling to months
Date: Tue, 03 Aug 2021 16:10:59 +0000
Message-ID: <E1mAx0N-0004uL-3T@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1mAx0N-0004uL-3T@gemulon.postgresql.org>
Permalink:  ../E1mAx0N-0004uL-3T@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1mAx0N-0004uL-3T@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: bruce@momjian.us
  Subject: Re: pgsql: interval:  round values when spilling to months
  In-Reply-To: <E1mAx0N-0004uL-3T@gemulon.postgresql.org>
  References: <E1mAx0N-0004uL-3T@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox