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 1p2ya1-0006dl-6d for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2022 17:51:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p2ya0-0005yb-3g for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Dec 2022 17:51:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2yZz-0005yR-QY for pgsql-hackers@lists.postgresql.org; Wed, 07 Dec 2022 17:51:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2yZx-0007yF-OS for pgsql-hackers@lists.postgresql.org; Wed, 07 Dec 2022 17:51:35 +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 2B7HpTID4042205; Wed, 7 Dec 2022 12:51:29 -0500 From: Tom Lane To: Andres Freund cc: Corey Huinker , Andrew Dunstan , Alvaro Herrera , Joe Conway , Robert Haas , Nikita Glukhov , PostgreSQL Hackers Subject: Re: Error-safe user functions In-reply-to: <20221207173427.7jmjd3fsfuydh6th@awork3.anarazel.de> References: <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> <40ff1ed1-4245-e343-bffa-c7755b031492@dunslane.net> <3889877.1670358069@sss.pgh.pa.us> <20221207173427.7jmjd3fsfuydh6th@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 07 Dec 2022 09:34:27 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4042203.1670435489.1@sss.pgh.pa.us> Date: Wed, 07 Dec 2022 12:51:29 -0500 Message-ID: <4042204.1670435489@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > Is there a guarantee that input functions are stable or immutable? There's a project policy that that should be true. That justifies marking things like record_in as stable --- if the per-column input functions could be volatile, record_in would need to be as well. There are other dependencies on it; see e.g. aab353a60, 3db6524fe. > We don't > have any volatile input functions in core PG: Indeed, because type_sanity.sql checks that. regards, tom lane