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 1uIrRN-00CcKV-AF for pgsql-hackers@arkaria.postgresql.org; Sat, 24 May 2025 16:09:41 +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 1uIrQM-00CXPI-F4 for pgsql-hackers@arkaria.postgresql.org; Sat, 24 May 2025 16:08:37 +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 1uIrQL-00CXKS-LZ for pgsql-hackers@lists.postgresql.org; Sat, 24 May 2025 16:08:37 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uIrQH-000lQF-0B for pgsql-hackers@lists.postgresql.org; Sat, 24 May 2025 16:08:35 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 4F93A138026D; Sat, 24 May 2025 12:08:30 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sat, 24 May 2025 12:08:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=justatheory.com; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm3; t=1748102910; x= 1748189310; bh=Px+UZGq37HipBGjuK7vobIZXtjUS5Nk4WJ0TdPfZTmA=; b=u atibuLafETtU4iW5/PcVpDKic3F8tL32zVtyT9BeF0hnRUeLqY/SI+/6Pm2YD6R6 ZTWLw8hx506deO38ul+H10i3W/XFNOajA6XPkA+A0aiaSHGhCfXmpOqbi59Ka4iJ zeL9/ik/hFeVHPn4WaZ3QYCiuvUpUcUVMZ70LwO6ghKII3PpWG9Raw7BbJM3fG7F K2cM9BO05P1sdMr8SxVHGfOFVgI4bg38o+xC1S67wv1HfLtlOzOLAfFHlRszsBQu HX73LVPoL5+6F2v1m1w7niNVPS5yvU14YNFKa/5IAsVtVWuGzDTVn+smOR/IvocB mhOU8CIVCXVMZ9OCRBsIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1748102910; x=1748189310; bh=Px+UZGq37HipBGjuK7vobIZXtjUS5Nk4WJ0 TdPfZTmA=; b=YSB9b0ctZ+PX8qglEgblfnZjMf/XIV66/CMpEx25t8mr88bBtZ8 w9B50QIY7nYd51pz44CZVlU+XzNFS6Xo3HzlCX8n1xB4nflHbEN8pMAhFXg+X1eC JzK11k/bqFYBNakNqOgww28s1ttp7ipJujCuXFN2Kdd/++0xjVF3+qA1llgPPoYd Ly2qYbZqXiBnDssQH27UOixjRQiH0Y4Pnv1HlvJqY5DTZFuC0CT1PeMCbMTBtSEB RnxUwK6S0ZU3rPUzO5Bw4HvTvUKUR7kth1rfUBQBxfHwdw6JF6pKyyEFO+mzsNZl KeH7wKd8tmkcIwD9dDuHHZE8PhGvIYGvcCg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdduvddujeculddtuddrgeefvddrtd dtmdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggft fghnshhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftd dtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffev kfhfvffosehgtdhmrehhtdejnecuhfhrohhmpedfffgrvhhiugcugfdrucghhhgvvghlvg hrfdcuoegurghvihgusehjuhhsthgrthhhvghorhihrdgtohhmqeenucggtffrrghtthgv rhhnpefhhfeiiedtfeekvefhhedtgfeihefgffelteejteekiedtueegjeegfeffffekie enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghv ihgusehjuhhsthgrthhhvghorhihrdgtohhmpdhnsggprhgtphhtthhopeejpdhmohguvg epshhmthhpohhuthdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhr tghpthhtohepfhhlohhrvghnthhsrdhtshgvlhgrihesghhmrghilhdrtghomhdprhgtph htthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopehrohgs vghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhrtghpthhtoheprggvkhhorhhothhkoh hvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhi shhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprghnughrvgifseguuh hnshhlrghnvgdrnhgvth X-ME-Proxy: Feedback-ID: i7c334307:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 24 May 2025 12:08:29 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_2D51C93B-29B3-42D3-89B1-CBA5791EED8C"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part From: "David E. Wheeler" In-Reply-To: <2568904.1748022721@sss.pgh.pa.us> Date: Sat, 24 May 2025 12:08:18 -0400 Cc: Florents Tselai , Peter Eisentraut , Robert Haas , Alexander Korotkov , pgsql-hackers , Andrew Dunstan Message-Id: References: <145894.1727298237@sss.pgh.pa.us> <7e9debe6-4e96-4b0d-a801-b531e962ef43@eisentraut.org> <01DC1C38-0692-461B-AA63-5394330356BE@gmail.com> <2568904.1748022721@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3826.600.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Apple-Mail=_2D51C93B-29B3-42D3-89B1-CBA5791EED8C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On May 23, 2025, at 13:52, Tom Lane wrote: >> I assume you mean that they=E2=80=99re set at initdb time, so = there=E2=80=99s no mutability concern?=20 >=20 > Yeah, I think Peter's right and I'm wrong. Obviously this ties into > our philosophical debate about how immutable is immutable. But as > long as the functions only depend on locale settings that are fixed > at database creation, I think it's okay to consider them immutable. >=20 > If you were, say, depending on LC_NUMERIC, it would clearly be unsafe > to consider that immutable, so I'm not quite sure if this is the end > of the discussion. But for what's mentioned in the thread title, > I think we only care about LC_CTYPE. Oh, so maybe all this is moot, and Florents can go ahead and add support = for the functions to the non-_tz functions? Should there be some sort of inventory of what functions can be used in = what contexts? D --Apple-Mail=_2D51C93B-29B3-42D3-89B1-CBA5791EED8C Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd+KfmbOQis6ZycGGkt9idPjIgfEFAmgx7vIACgkQkt9idPjI gfFkLg//Q95RuWjqneyFR41SQTY/QK0T8rg5k8/m3A3q60iQytjb1RmJOjsJbBiB FfQUof8Yvwo/I4n3uhfAPjHjJ7Kn+eRQ05EF8WFjLooi0SIOddGxs/JKacYjhMOo dGG9R0zvi7/QdsDaRWsgBJD3ARe0iM5SM/ZlSDey5oc2J3j9ksfgqXyIGr6+fmcD /Y8NCaqYbhhzJBy8oYJY6oaG6GU4rTIOCebU5epaycJikQ2xxAKMIM9JAGwCEB3z jI4yuDWMb0oiNrlekyGrmsegdaddDsGjdxKk9V3iqnI9Ia7jwIQ4LCzgwGz7iexf piXr+fWsm6OXuUkv2QokQujdpj9iZPWj9+5TWST6uLDMK1GxXAj7jZaZU4LQvAax YJZY6eGfQ6fkKqzYOukdUa3pjW57SU0bJug3w6I8gHyxAamfgNo4Y+9PfbEu92oe qwdvbUcC1YKtzMGscqAm+UL3yvh6qhRuMkDlOnE8Yos+XkHkPbORaojD5pbk6oHL nSK7yZLWwjCoJ30Eo/Vsq9eigx3iaxOSQ/BFEbo9Q0uA+rj9NZf7qxCKcnb+NiLS 51CAaKJXvgYsEOeZ1fu8d2aDGWKrMLFCj9OVbPDKYfeOsjlYxCTyNF9+a6qxfV2C J+5+FEKCY8wAH2srETqtUCItgctlYnLNcZxhdFtMGfwcw2e1SMk= =bbV/ -----END PGP SIGNATURE----- --Apple-Mail=_2D51C93B-29B3-42D3-89B1-CBA5791EED8C--