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 1hEzSL-0001cL-10 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Apr 2019 16:55:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEzSI-0001B1-2T for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Apr 2019 16:55:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEzSH-0001Au-Nz for pgsql-bugs@lists.postgresql.org; Fri, 12 Apr 2019 16:55:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEzSF-0004kQ-He for pgsql-bugs@lists.postgresql.org; Fri, 12 Apr 2019 16:55:08 +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 x3CGt4lq001595; Fri, 12 Apr 2019 12:55:04 -0400 From: Tom Lane To: Kyotaro HORIGUCHI cc: r.zharkov@postgrespro.ru, pgsql-bugs@lists.postgresql.org, noreply@postgresql.org Subject: Re: BUG #15746: cache lookup failed for function in plpgsql block In-reply-to: <20190411.211113.08508498.horiguchi.kyotaro@lab.ntt.co.jp> References: <15746-6e0482a4c0f915cb@postgresql.org> <20190411.211113.08508498.horiguchi.kyotaro@lab.ntt.co.jp> Comments: In-reply-to Kyotaro HORIGUCHI message dated "Thu, 11 Apr 2019 21:11:13 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1593.1555088104.1@sss.pgh.pa.us> Date: Fri, 12 Apr 2019 12:55:04 -0400 Message-ID: <1594.1555088104@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kyotaro HORIGUCHI writes: > It seems to me possible that a cast calls a wrong function and > leads to a crash. I don't see a good reason to think that a crash is possible. > But I don't come up with a good way to fix > this, but applying a part of the patch 04fe805a17 on 11(.2) seems > working. FWIW, I intentionally did not back-patch 04fe805a17. I judged that before the domain-related changes in that patch, such cases wouldn't come up often enough to justify inserting poorly-tested code into the back branches. I still think that. regards, tom lane