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.96) (envelope-from ) id 1x1bTG-005JIB-0o for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Sep 2026 03:17:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x1bSF-009tZ7-2x for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Sep 2026 03:16:03 +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.96) (envelope-from ) id 1x1bSF-009tYz-27 for pgsql-bugs@lists.postgresql.org; Wed, 02 Sep 2026 03:16:03 +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.98.2) (envelope-from ) id 1x1bSD-00000002TdF-1Pey for pgsql-bugs@lists.postgresql.org; Wed, 02 Sep 2026 03:16:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 6823FxZU1306745; Tue, 1 Sep 2026 23:15:59 -0400 From: Tom Lane To: Fujii Masao cc: jj-zhang25@mails.tsinghua.edu.cn, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19644: byteaout, float8out and float4out are marked IMMUTABLE but depend on GUCs In-reply-to: References: <19644-d6db3fb5e5ad92f4@postgresql.org> Comments: In-reply-to Fujii Masao message dated "Wed, 02 Sep 2026 12:08:30 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1306743.1788318959.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Sep 2026 23:15:59 -0400 Message-ID: <1306744.1788318959@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Fujii Masao writes: > On Tue, Sep 1, 2026 at 10:12=E2=80=AFPM PG Bug reporting form > wrote: >> Mark byteaout, float8out and float4out (and the corresponding casts to = text) >> STABLE rather than IMMUTABLE, matching date_out, interval_out and cash_= out. > +1 to making such changes on master, even though they would cause > several compatibility issues for existing users... I agree with changing this on master, but I see no reason to do anything whatever in the back branches. There are few situations where the mutability marking of a datatype output function matters, and even if it does, you don't see an actual problem unless you change one of these GUCs mid-query. If it were a big deal, we would have noticed this ages ago. regards, tom lane