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 1tt7kH-008tQU-53 for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Mar 2025 16:18:49 +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 1tt7kF-00B2pX-1o for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Mar 2025 16:18:47 +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 1tt7kE-00B2pP-Po for pgsql-bugs@lists.postgresql.org; Fri, 14 Mar 2025 16:18:46 +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.96) (envelope-from ) id 1tt7kB-002rYo-0R for pgsql-bugs@lists.postgresql.org; Fri, 14 Mar 2025 16:18:46 +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 52EGIgjH3080652; Fri, 14 Mar 2025 12:18:42 -0400 From: Tom Lane To: Viktor Holmberg cc: Daniel Gustafsson , pgsql-bugs@lists.postgresql.org Subject: Re: ISN extension - wrong volatility level for isn_weak() function In-reply-to: References: <790bc1f9-74dc-4b50-94d2-8147315b1556@Spark> <51C655A4-46FB-4A40-BAE5-26A76B31D3EE@yesql.se> <3052531.1741961784@sss.pgh.pa.us> <3074065.1741965229@sss.pgh.pa.us> Comments: In-reply-to Viktor Holmberg message dated "Fri, 14 Mar 2025 16:08:36 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3080650.1741969122.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Mar 2025 12:18:42 -0400 Message-ID: <3080651.1741969122@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Viktor Holmberg writes: > However, cleaning things up to use GUC seems like it=E2=80=99d be bigger= task, and also would only be an extra thing, as isn_weak function would n= eed to stay in for backwards compatibility I assume. Wouldn't be a big deal --- yes, accept_weak_input would need a bit of modification, but it's not much. The main reason I suggested it was that a GUC would be subject to RESET ALL and so it'd fix the pooler hazard you pointed out. > In terms of just fixing the immediate bug, I believe it=E2=80=99d just b= e to change isn.sql line 3423 and 2433: No, we'd need to create an update script that uses ALTER FUNCTION. Extension scripts are basically frozen once shipped. regards, tom lane