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 1p2FWO-0001Ff-H1 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Dec 2022 17:44:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p2FWN-0004oz-Ei for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Dec 2022 17:44:51 +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 1p2FWN-0004oq-4t for pgsql-hackers@lists.postgresql.org; Mon, 05 Dec 2022 17:44:51 +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 1p2FWL-000440-3I for pgsql-hackers@lists.postgresql.org; Mon, 05 Dec 2022 17:44:50 +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 2B5Hillr3321804; Mon, 5 Dec 2022 12:44:47 -0500 From: Tom Lane To: Robert Haas cc: Corey Huinker , Andrew Dunstan , Nikita Glukhov , PostgreSQL Hackers Subject: Re: Error-safe user functions In-reply-to: References: <3bbbb0df-7382-bf87-9737-340ba096e034@postgrespro.ru> <3190059.1665164276@sss.pgh.pa.us> <57b7cc2e-1215-3f43-84e4-6d9f8ad575df@dunslane.net> <3049337.1669008405@sss.pgh.pa.us> <469338a3-da38-160f-23b9-813c261bc1d6@dunslane.net> <1677334.1669918475@sss.pgh.pa.us> <1695760.1669923671@sss.pgh.pa.us> <1703871.1669927782@sss.pgh.pa.us> <1721519.1669934025@sss.pgh.pa.us> <1925585.1669990324@sss.pgh.pa.us> <02cf2f81-a776-37ff-291c-100480722a5c@dunslane.net> <2503569.1670104001@sss.pgh.pa.us> <3311162.1670260197@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 05 Dec 2022 12:27:29 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3321802.1670262287.1@sss.pgh.pa.us> Date: Mon, 05 Dec 2022 12:44:47 -0500 Message-ID: <3321803.1670262287@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > AIUI, the macro never returns in the sense of using the return > statement, unlike PG_RETURN_WHATEVER(), which do. Oh! Now I see what you don't like about it. I thought you meant "return to the call site", not "return to the call site's caller". Agreed that that could be confusing. regards, tom lane