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 1gsxl7-0004xx-0r for pgsql-bugs@arkaria.postgresql.org; Sun, 10 Feb 2019 22:39:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gsxl5-0004KL-CZ for pgsql-bugs@arkaria.postgresql.org; Sun, 10 Feb 2019 22:39:31 +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 1gsxl5-0004KE-69 for pgsql-bugs@lists.postgresql.org; Sun, 10 Feb 2019 22:39:31 +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 1gsxkz-0000x1-2S for pgsql-bugs@lists.postgresql.org; Sun, 10 Feb 2019 22:39:30 +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 x1AMdJB8013326; Sun, 10 Feb 2019 17:39:19 -0500 From: Tom Lane To: David Rowley cc: 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> Comments: In-reply-to David Rowley message dated "Mon, 11 Feb 2019 11:05:54 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13324.1549838359.1@sss.pgh.pa.us> Date: Sun, 10 Feb 2019 17:39:19 -0500 Message-ID: <13325.1549838359@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > Updated patch attached again. This time due to a newly added call to > LookupFuncName() in 1fb57af92. Hmm ... I'd not looked at this before, but now that I do, the new API for LookupFuncName seems mighty confused, or at least confusingly documented. It's not clear what the combinations of the flags actually do, or why you'd want to use them. I wonder whether you'd be better off replacing the two bools with an enum, or something like that. regards, tom lane