Re: truncating timestamps on arbitrary intervals - Mailing list pgsql-hackers

From John Naylor
Subject Re: truncating timestamps on arbitrary intervals
Date
Msg-id CAFBsxsH-5oHnn0eNx094KGf_JDH58vJ7DBqznmAA41JOT0bkgg@mail.gmail.com
Whole thread Raw
In response to Re: truncating timestamps on arbitrary intervals  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Wed, Jul 28, 2021 at 12:15 AM Michael Paquier <michael@paquier.xyz> wrote:
>
> On Tue, Jul 27, 2021 at 12:05:51PM -0400, John Naylor wrote:
> > Concretely, I propose to push the attached on master and v14. Since we're
> > in beta 2 and this thread might not get much attention, I've CC'd the RMT.
>
> (It looks like gmail has messed up a bit the format of your last
> message.)

Hmm, it looks fine in the archives.

> Hmm.  The docs say also the following thing, but your patch does not
> reflect that anymore:
> "Negative intervals are allowed and are treated the same as positive
> intervals."

I'd forgotten that was documented based on incomplete information, thanks for looking! Pushed with that fixed.

--
John Naylor
EDB: http://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Have I found an interval arithmetic bug?
Next
From: Andrew Dunstan
Date:
Subject: Re: Out-of-memory error reports in libpq