Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gw8X9-0001us-3r for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2019 16:46:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gw8X7-0005DH-S7 for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Feb 2019 16:46:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gw8X7-0005Bl-La for pgsql-bugs@lists.postgresql.org; Tue, 19 Feb 2019 16:46:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gw8Wz-00068S-Bf for pgsql-bugs@lists.postgresql.org; Tue, 19 Feb 2019 16:46:12 +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 x1JGjxeG032562; Tue, 19 Feb 2019 11:45:59 -0500 From: Tom Lane To: Julien Rouhaud cc: David Rowley , Michael Paquier , Alvaro Herrera , Ash M , PostgreSQL mailing lists Subject: Re: BUG #15572: Misleading message reported by "Drop function operation" on DB with functions having same name In-reply-to: References: <201901071454.wxkoyoq4s5qp@alvherre.pgsql> <19400.1546994166@sss.pgh.pa.us> <13325.1549838359@sss.pgh.pa.us> <20190212030927.GF1475@paquier.xyz> <7757.1550442703@sss.pgh.pa.us> Comments: In-reply-to Julien Rouhaud message dated "Tue, 19 Feb 2019 17:00:26 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32560.1550594759.1@sss.pgh.pa.us> Date: Tue, 19 Feb 2019 11:45:59 -0500 Message-ID: <32561.1550594759@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Julien Rouhaud writes: > On Sun, Feb 17, 2019 at 11:31 PM Tom Lane wrote: >> Yeah, exactly. Not only do I not feel a need to change this behavior >> in the back branches, but the original patch is *also* an API change, >> in that it changes the behavior of what appears to be a well-defined >> boolean parameter. The fact that none of the call sites found in >> core today would care doesn't change that; you'd still be risking >> breaking extensions, and/or future back-patches. > Extensions calling those functions with old true/false values probably > won't get any warning or error during compile. Is is something we > should worry about or is it enough to keep the same behavior in this > case? Yeah, I thought about that. We can avoid such problems by assigning the enum values such that 0 and 1 correspond to the old behaviors. I didn't look to see if the proposed patch does it like that right now, but it should be an easy fix if not. regards, tom lane