Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKAHe-0005BO-RT for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2016 20:15:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bKAHe-0007zu-D5 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Jul 2016 20:15:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bKAHd-0007zk-SG for pgsql-hackers@postgresql.org; Mon, 04 Jul 2016 20:15:57 +0000 Received: from kilimanjaro.scorpionshops.com ([82.118.24.83]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKAHa-0004XI-Aj for pgsql-hackers@postgresql.org; Mon, 04 Jul 2016 20:15:57 +0000 Received: from [192.168.1.4] (92-32-205-114.tn.glocalnet.net [92.32.205.114]) by kilimanjaro.scorpionshops.com (Postfix) with ESMTPSA id 540FE7BC1CC; Mon, 4 Jul 2016 22:15:52 +0200 (CEST) Subject: Re: to_date_valid() To: Andreas 'ads' Scherbaum , Jaime Casanova , Euler Taveira References: <57786490.9010201@wars-nicht.de> <5778EA94.1020706@wars-nicht.de> Cc: Pg Hackers From: Andreas Karlsson Message-ID: Date: Mon, 4 Jul 2016 22:15:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: <5778EA94.1020706@wars-nicht.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org 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.magwien.gv.at > > > 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