Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0WRd-0005QW-Aa for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Sep 2018 18:34:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g0WRb-0003IU-2m for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Sep 2018 18:34:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0WRa-0003IM-Kz for pgsql-hackers@lists.postgresql.org; Thu, 13 Sep 2018 18:34:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0WRX-0001tb-TM for pgsql-hackers@postgresql.org; Thu, 13 Sep 2018 18:34:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8DIY7Qw014502; Thu, 13 Sep 2018 14:34:07 -0400 From: Tom Lane To: Alexander Korotkov cc: Artur Zakirov , amul sul , "David G. Johnston" , Dmitry Dolgov <9erthalion6@gmail.com>, Robert Haas , Thomas Munro , Pavel Stehule , Alex Ignatov , Bruce Momjian , amul sul , pgsql-hackers Subject: Re: [HACKERS] Bug in to_timestamp(). In-reply-to: References: <20180911151829.GA29967@zakirov.localdomain> Comments: In-reply-to Alexander Korotkov message dated "Thu, 13 Sep 2018 21:19:47 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14500.1536863647.1@sss.pgh.pa.us> Date: Thu, 13 Sep 2018 14:34:07 -0400 Message-ID: <14501.1536863647@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Korotkov writes: > I've closed commitfest entry. I think we can add new commitfest entry if > required. Regarding FX part, it easy to extract it as separate patch, but > it's hard to find consensus. I think there are at least three possible > decisions. > 1) Change FX mode to require separators to be the same. > 2) Leave FX mode "as is". > 3) Introduce GUC variable controlling behavior of FX mode. > Any thoughts? A GUC variable is a horrid solution. Years ago we thought it'd be OK to have GUCs that change query behavior, but we've regretted it every time we did that, and often removed them again later (e.g. regex_flavor, sql_inheritance). Applications that want to be portable have to contend with all possible values of the GUC, and that's no fun for anybody. Given the lack of consensus, it's hard to make a case for breaking backwards compatibility, so I'd have to vote for option 2. regards, tom lane