From: Andreas Karlsson <andreas@proxel.se>
To: Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>
To: Jaime Casanova <jaime.casanova@2ndquadrant.com>
To: Euler Taveira <euler@timbira.com.br>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: to_date_valid()
Date: Mon, 4 Jul 2016 22:15:50 +0200
Message-ID: <af97b147-3542-7a55-b651-e0ecae0c8c00@proxel.se> (raw)
In-Reply-To: <5778EA94.1020706@wars-nicht.de>
References: <57786490.9010201@wars-nicht.de>
<dcdebc73-ffdd-13a3-d6cd-73e1944a066b@timbira.com.br>
<CAJGNTeO75ZPm3qDk9rze7coGyvCZyWm68iEFY3WOYb5w=7OdBg@mail.gmail.com>
<5778EA94.1020706@wars-nicht.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 07/03/2016 12:36 PM, Andreas 'ads' Scherbaum wrote:
> On 03.07.2016 07:05, Jaime Casanova wrote:
>> Shouldn't we fix this instead? Sounds like a bug to me. We don't usually
>> want to be bug compatible so it doesn't matter if we break something.
>
> There are previous discussions about such a change, and this was rejected:
>
> https://www.postgresql.org/message-id/lbjf1v%24a2v%241%40ger.gmane.org
> https://www.postgresql.org/message-id/A737B7A37273E048B164557ADEF4A58B17C9140E%40ntex2010i.host.magw...
>
>
> Hence the new function, which does not collide with the existing
> implementation.
I do not see a clear conclusion in the linked threads. For example Bruce
calls it a bug in one of the emails
(https://www.postgresql.org/message-id/201107200103.p6K13ix10517%40momjian.us).
I think we should fix to_date() to throw an error. Personally I would be
happy if my code broke due to this kind of change since the exception
would reveal an old bug which has been there a long time eating my data.
I cannot see a case where I would have wanted the current behavior.
If there is any legitimate use for the current behavior then we can add
it back as another function.
Andreas
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: andreas@proxel.se, adsmail@wars-nicht.de, jaime.casanova@2ndquadrant.com, euler@timbira.com.br
Subject: Re: to_date_valid()
In-Reply-To: <af97b147-3542-7a55-b651-e0ecae0c8c00@proxel.se>
References: <57786490.9010201@wars-nicht.de> <dcdebc73-ffdd-13a3-d6cd-73e1944a066b@timbira.com.br> <CAJGNTeO75ZPm3qDk9rze7coGyvCZyWm68iEFY3WOYb5w=7OdBg@mail.gmail.com> <5778EA94.1020706@wars-nicht.de> <af97b147-3542-7a55-b651-e0ecae0c8c00@proxel.se>
* 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