From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: abelisto@gmail.com, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14446: make_date with negative year
Date: Mon, 5 Dec 2016 15:38:37 -0300
Message-ID: <20161205183837.dcs5y3sfoiwgv6b3@alvherre.pgsql> (raw)
In-Reply-To: <CAFj8pRBCZBKWME6iYnswg0OjCCeOkMXU8yreFS5wYQkmD3D+Pg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Pavel Stehule wrote:
> 2016-12-04 14:40 GMT+01:00 Alvaro Herrera <alvherre@2ndquadrant.com>:
> > abelisto@gmail.com wrote:
> > >
> > > with t(x) as (values('1111-11-11 BC'::date)) select
> > make_date(extract(year
> > > from x)::int, extract(month from x)::int, extract(day from x)::int) from
> > > t;
> > > ERROR: date field value out of range: -1111-11-11
So make_date was introduced in 9.4 by commit f901bb50e; this report is
based on 9.5. Do we want to backpatch this change? Since the fix only
changes behavior that currently errors out anyway, we would not be
changing anything that people are relying on. I lean towards
backpatching all the way back to 9.4 myself.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: alvherre@2ndquadrant.com, pavel.stehule@gmail.com
Subject: Re: BUG #14446: make_date with negative year
In-Reply-To: <20161205183837.dcs5y3sfoiwgv6b3@alvherre.pgsql>
References: <CAFj8pRBCZBKWME6iYnswg0OjCCeOkMXU8yreFS5wYQkmD3D+Pg@mail.gmail.com> <20161205183837.dcs5y3sfoiwgv6b3@alvherre.pgsql>
* 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