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 1uICxs-000DPV-Py for pgsql-hackers@arkaria.postgresql.org; Thu, 22 May 2025 20:56:32 +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 1uICxr-008ezE-Ae for pgsql-hackers@arkaria.postgresql.org; Thu, 22 May 2025 20:56:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uICxr-008ez6-0h for pgsql-hackers@lists.postgresql.org; Thu, 22 May 2025 20:56:30 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uICxo-000ND3-1d for pgsql-hackers@lists.postgresql.org; Thu, 22 May 2025 20:56:29 +0000 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id F051013805A9; Thu, 22 May 2025 16:56:27 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Thu, 22 May 2025 16:56:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding: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=fm2; t=1747947387; x=1748033787; bh=KfYFBL8lOXCaAPJ7VxHqo/AnUFBAZoCq LrKTiVzmMAc=; b=GYAYxmdrWNDG1QTFuPUbBpBuy6kGOWEBJQTcA1WyutCikBw4 48e+UqTxtv0ZvivyNkAJvR0Z8LdEbjqKv9ChY3vgfcLZCZP9hvfjSQ24YMi44YlF RXmsfzEVevIykv51PmJQrtcUxjpiF1mUVF9YfsU/pVeO/xRBE+1PM00zDP+LwMrz YDEuZbs/XJM8OZNhgsXS+M2CTHueXhOuLRfB/LTY48fxdXvJ4TW+fCHQBBaLdKNl Wg9vOhf+8huzk9BnZswYyceaNCb05xJHEJSjS6EZboNnAt7jmUvupIbjKBCawhjK IWx/hKmid6TocNEhaYdKMzDpHIsjpADfiYQzLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=1747947387; x= 1748033787; bh=KfYFBL8lOXCaAPJ7VxHqo/AnUFBAZoCqLrKTiVzmMAc=; b=s cOU9o9K+AQFfbn0viZDmqFYmTTbU4FV6q7K5KaahBGuiFjL1huhEAFlLQLGuuoIT dTSI40CPbQeW6MP0pIcksEE19zJ5lhWtoXRDdSlinXZTKQWtW/FTdfpnBviVHYUP sIba7sBDQB4D7kDhKV87o4nxfNtjBVwC8imoq/Ep8tKSeuyx1sWZ5i/5rGusENTi plGeL4w8LgGqDBBahJUKzwXBLI9dc1C3Jy7hLhivBCi4oLEvqIAemF7jg9b8O9+8 9vl2iXSckdIEo9R6sZotmBJ9jwuWE/3F/FYhNDcHvQTbysOoOMRFhy0Xbulho7OM zPgcAFcyLc1fVjYNrQf0w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdeileekucdltddurdegfedvrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehf hfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuth cuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhep gfejtdfhkeeftdeugfeileehteeljeeghfeuledthfeutedvffdukeefjefhgeehnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhes vghishgvnhhtrhgruhhtrdhorhhgpdhnsggprhgtphhtthhopeeipdhmohguvgepshhmth hpohhuthdprhgtphhtthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgtohhmpdhr tghpthhtohepfhhlohhrvghnthhsrdhtshgvlhgrihesghhmrghilhdrtghomhdprhgtph htthhopegrvghkohhrohhtkhhovhesghhmrghilhdrtghomhdprhgtphhtthhopehtghhl sehsshhsrdhpghhhrdhprgdruhhspdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsh eslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtoheprghnughrvgif seguuhhnshhlrghnvgdrnhgvth X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 May 2025 16:56:26 -0400 (EDT) Message-ID: <7e9debe6-4e96-4b0d-a801-b531e962ef43@eisentraut.org> Date: Thu, 22 May 2025 22:56:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part To: Robert Haas , Florents Tselai Cc: Alexander Korotkov , Tom Lane , pgsql-hackers , Andrew Dunstan References: <145894.1727298237@sss.pgh.pa.us> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 09.05.25 21:50, Robert Haas wrote: > I always struggle a bit to remember our policy on these issues -- to > the best of my knowledge, we haven't documented it anywhere, and I > think we probably should. I believe the way it works is that whenever > a function depends on the operating system's timestamp or locale > definitions, we decide it has to be stable, not immutable. We don't > expect those things to be updated very often, but we know sometimes > they do get updated. I don't understand how this discussion got to the conclusion that functions that depend on the locale cannot be immutable. Note that the top-level functions lower, upper, and initcap themselves are immutable.