From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve behavior of date_bin with origin in the future
Date: Sat, 10 Apr 2021 17:45:15 +0000
Message-ID: <E1lVHfX-0002sR-TP@gemulon.postgresql.org> (raw)
Improve behavior of date_bin with origin in the future
Currently, when the origin is after the input, the result is the
timestamp at the end of the bin, rather than the beginning as
expected. This puts the result consistently at the beginning of the
bin.
Author: John Naylor <john.naylor@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/CAFBsxsGjLDxQofRfH+d4KSAXxPf3MMevUG7s6EDfdBOvHLDLjw@mail.gmail...
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/496e58bb0e5e939e6ed5839c92b05e3ab11b54bb
Modified Files
--------------
src/backend/utils/adt/timestamp.c | 14 +++++++++
src/test/regress/expected/timestamp.out | 54 +++++++++++++++++++++++++++++++++
src/test/regress/sql/timestamp.sql | 34 +++++++++++++++++++++
3 files changed, 102 insertions(+)
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: peter@eisentraut.org
Subject: Re: pgsql: Improve behavior of date_bin with origin in the future
In-Reply-To: <E1lVHfX-0002sR-TP@gemulon.postgresql.org>
References: <E1lVHfX-0002sR-TP@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