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 1q9nvG-0007oB-U2 for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Jun 2023 14:26:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q9nvA-0000j9-MY for pgsql-hackers@arkaria.postgresql.org; Thu, 15 Jun 2023 14:25:56 +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 1q9nvA-0000j0-DQ for pgsql-hackers@lists.postgresql.org; Thu, 15 Jun 2023 14:25:56 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q9nv3-002Y02-Tp for pgsql-hackers@lists.postgresql.org; Thu, 15 Jun 2023 14:25:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VkfbKQZrc+u+LEAPgABTe+vXOMzCIVSc5oYP8RzpG/A=; b=lsycjafo3mC0btekcUyQlhAOV9 Gtuq/FOlL1FG5+Tbcd2YeutlbBJRrDyOfKgYslCjPUPwxdggJ3SvkL1DexCvlURHS2xW4TiP/+ab1 z9e2b4GZf/mvG+yxyjjE09QxERwo4PqFYEHotS6IbnB+2FAJPtt59EFZ9fe+Fr9sdfHLhiPYzum2T w4e3pA2zkvtw62jBltmc/KcSo3SkuptOia0jGPNX5qX5BySBb1QJJ4CkG6FidrENLzVhEmP7qvfSj +bCFkXsoB3ZJS9K4IneHQ6sNiiqI2YwDN9GIxPOAvpQRYpOZCXuoS0YsL7CmsD0TbixK1J/l7PxQ5 g7GHuiIw==; Received: from [::1] (port=50454 helo=bay.acenet.us) by bay.acenet.us with esmtpa (Exim 4.96) (envelope-from ) id 1q9nv1-009F1e-1k; Thu, 15 Jun 2023 10:25:48 -0400 MIME-Version: 1.0 Date: Thu, 15 Jun 2023 10:25:46 -0400 From: chap@anastigmatix.net To: "David G. Johnston" Cc: Tom Lane , Yura Sokolov , pgsql-hackers@lists.postgresql.org Subject: Re: When IMMUTABLE is not. In-Reply-To: References: <389c986d-fbb4-c644-9280-db7836af7ca9@postgrespro.ru> <2111925.1686835298@sss.pgh.pa.us> <69234e25e34e68425f49630f79ef9991@anastigmatix.net> <4c32f84bc097dee0081e4cc3e733ef8d@anastigmatix.net> User-Agent: Roundcube Webmail/1.6.0 Message-ID: <7d1504b9211a5c153491761f3d82ae53@anastigmatix.net> X-Sender: chap@anastigmatix.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-06-15 10:19, David G. Johnston wrote: > The failure to find and execute the function code itself is not a > failure > mode that these markers need be concerned with. Assuming one can > execute > the function an immutable function will give the same answer for the > same > input for all time. That was the view I ultimately took, and just made PL/Java suppress that SPI readonly flag when going to look for the function code. Until that change, you could run into the not-uncommon situation where you've just loaded a jar of new functions and try to use them in the same transaction, and hey presto, the VOLATILE ones all work, and the IMMUTABLE ones aren't there yet. Regards, -Chap