Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2Nl1-0002YQ-Gz for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Dec 2022 02:32:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p2Nl0-0001tG-DD for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Dec 2022 02:32:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2Nl0-0001t7-3s for pgsql-hackers@lists.postgresql.org; Tue, 06 Dec 2022 02:32:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2Nkx-0000Ds-TS for pgsql-hackers@lists.postgresql.org; Tue, 06 Dec 2022 02:32:29 +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 2B62WNI63532387; Mon, 5 Dec 2022 21:32:23 -0500 From: Tom Lane To: Andres Freund cc: Andrew Dunstan , Alvaro Herrera , Joe Conway , Robert Haas , Corey Huinker , Nikita Glukhov , PostgreSQL Hackers Subject: Re: Error-safe user functions In-reply-to: <20221206022323.p5y6s4q57ngzrwqx@awork3.anarazel.de> References: <20221205174231.6wpmbuxafnfzlbuh@alvherre.pgsql> <85e40849-4458-bbb9-62ee-d9e7faf0c7dc@dunslane.net> <3323802.1670263204@sss.pgh.pa.us> <3496391.1670276406@sss.pgh.pa.us> <20221205234734.sab3fuxy6q2sokjd@alap3.anarazel.de> <3518534.1670285891@sss.pgh.pa.us> <20221206005607.lxcrazckoalptwds@alap3.anarazel.de> <3523582.1670288815@sss.pgh.pa.us> <20221206011404.i7gxuuzna25ej2hr@alap3.anarazel.de> <3524499.1670289566@sss.pgh.pa.us> <20221206022323.p5y6s4q57ngzrwqx@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 05 Dec 2022 18:23:23 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3532385.1670293943.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Dec 2022 21:32:23 -0500 Message-ID: <3532386.1670293943@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > This in turn make me look at record_in() in 0002 - I think we might be l= eaking > a tupledesc refcount in case of errors. Yup: Doh :-( ... I did that function a little too hastily, obviously. Thanks for catching that. regards, tom lane