Re: truncating timestamps on arbitrary intervals
John Naylor <john.naylor@enterprisedb.com>
From: John Naylor <john.naylor@enterprisedb.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>,
Alvaro Herrera <alvherre@alvh.no-ip.org>, Peter Geoghegan <pg@bowt.ie>
Date: 2021-07-28T16:14:36Z
Lists: 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
Commits
-
Disallow negative strides in date_bin()
- fc0d9b8c224f 14.0 landed
- 3ba70d4e1523 15.0 landed
-
Improve behavior of date_bin with origin in the future
- 496e58bb0e5e 14.0 landed
-
doc: Additional documentation for date_bin
- 49fb4e6b2490 14.0 landed
-
Add date_bin function
- 49ab61f0bdc9 14.0 landed