Re: BUG #16419: wrong parsing BC year in to_date() function
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>, "David G. Johnston" <david.g.johnston@gmail.com>, Laurenz Albe <laurenz.albe@cybertec.at>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-09-30T23:41:47Z
Lists: pgsql-bugs, pgsql-hackers
On Wed, Sep 30, 2020 at 07:26:55PM -0400, Tom Lane wrote: > Bruce Momjian <bruce@momjian.us> writes: > > On Wed, Sep 30, 2020 at 06:10:38PM -0400, Robert Haas wrote: > >> On Wed, Sep 30, 2020 at 5:35 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > >>> By that logic, we should never fix any bug in a back branch. > > >> No, by that logic, we should not change any behavior in a back-branch > >> upon which a customer is plausibly relying. No one relies on a certain > >> query causing a server crash, for example, or a cache lookup failure, > >> so fixing those things can only help people. But there is no reason at > >> all why someone shouldn't be relying on this very old and > >> long-established behavior not to change in a minor release. > > > That is an interesting distinction. > > I don't want to sound like I'm totally without sympathy for Robert's > argument. But I do say it's a judgment call, and my judgment remains > that this patch is appropriate to back-patch. Agreed. I was just thinking it was an interesting classification that no one relies on crashes, or query failures. -- Bruce Momjian <bruce@momjian.us> https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee
Commits
-
Fix handling of BC years in to_date/to_timestamp.
- db96be24ce32 10.15 landed
- c5232dca8d1b 12.5 landed
- b0fe0b022f80 11.10 landed
- 99fd38c02299 13.1 landed
- 489c9c3407cb 14.0 landed
- 4857e6fe16c2 9.5.24 landed
- 19e7982681df 9.6.20 landed
-
Fix make_timestamp[tz] to accept negative years as meaning BC.
- a094c8ff5352 14.0 landed
-
doc: PG 13 relnotes, update TOAST item to mention decompression
- fb544735f114 13.0 cited