Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sEXyZ-0023wh-1e for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jun 2024 17:29:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sEXyW-001CeU-HV for pgsql-bugs@arkaria.postgresql.org; Tue, 04 Jun 2024 17:29:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sEXyW-001CeM-8k for pgsql-bugs@lists.postgresql.org; Tue, 04 Jun 2024 17:29:32 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sEXyS-002KgR-HS for pgsql-bugs@lists.postgresql.org; Tue, 04 Jun 2024 17:29:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 454HTPsv485344; Tue, 4 Jun 2024 13:29:26 -0400 From: Tom Lane To: Andrew Bille cc: Dmitry Dolgov <9erthalion6@gmail.com>, drewk@cockroachlabs.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18463: Possible bug in stored procedures with polymorphic OUT parameters In-reply-to: References: <18463-f8cd77e12564d8a2@postgresql.org> <20240514151843.yvq3wlt7n2kechv5@ddolgov.remote.csb> <1124184.1715706026@sss.pgh.pa.us> <1341220.1715715337@sss.pgh.pa.us> <1631943.1715731231@sss.pgh.pa.us> <20240515143506.pln5mzipy7iwa45i@ddolgov.remote.csb> <1800943.1715794137@sss.pgh.pa.us> Comments: In-reply-to Andrew Bille message dated "Tue, 04 Jun 2024 21:22:37 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <485342.1717522165.1@sss.pgh.pa.us> Date: Tue, 04 Jun 2024 13:29:25 -0400 Message-ID: <485343.1717522165@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Bille writes: > After 70ffb27b in REL_12 following script > CREATE OR REPLACE PROCEDURE p(inout a anyelement, inout b anyelement) > LANGUAGE SQL > AS $$ > SELECT $1, 1; > $$; > CALL p(1.1, null); > crash server with backtrace: Thanks for the report! It's fine in v13 and later, so I must have missed something while back-patching. Will look. regards, tom lane