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 1uIVrN-006FoJ-SA for pgsql-hackers@arkaria.postgresql.org; Fri, 23 May 2025 17:07:05 +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 1uIVrL-0041RY-Nb for pgsql-hackers@arkaria.postgresql.org; Fri, 23 May 2025 17:07:03 +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 1uIVrL-0041RP-CT for pgsql-hackers@lists.postgresql.org; Fri, 23 May 2025 17:07:02 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uIVrI-000Y4N-2c for pgsql-hackers@lists.postgresql.org; Fri, 23 May 2025 17:07:02 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43cfebc343dso181945e9.2 for ; Fri, 23 May 2025 10:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748020019; x=1748624819; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UKyHaILYOTFQ7CByhhAvI3FARAs6m511SmmRwFpe2Os=; b=CyG+9oMDoNPG7X0sAV2bQtqxRGNGhs9r1/M7OE9Plcr9CoOFEuq9juIKriawPCSVvi Z9FDHH4fleLHgkRsw7Z5eg8iquUP/f4DOhaKiBfVi9GkrYMxJRgfz7FzNEw0vOLPNVYa UIPk5tJIXge3SqNPiTfpcVrakc2QD6WsU8g+4w0CEYbsbsFfglY2gvGNDrtmNgoO1ahT AHDd85s1T3FpaHsNc224xS0X4X1YYhR8TvfX0dfHs/axQUJyKVbE0Q2gmBTROreRaKYL BhDNLI/Cfry8SYlGWYwdJXwhuDWiA2fJ5ea5XXLbpgm9nw6YtTXLnIQauuMl2wQWkc2r Xj0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748020019; x=1748624819; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UKyHaILYOTFQ7CByhhAvI3FARAs6m511SmmRwFpe2Os=; b=ml0yEwyviHG0uC3+sb+ZP8wv/cx3TWxAyedpQDLcuC6jZi2705IoDZfGDEirbuieSR 7l44XWSt8MajY5CHErQ+s3YcH7ljLvS/Nd2vOe2Y3cGY9+T51Yt+D6j+uGfLK7txgqMe khkSNeh2pHUx+s/OIAc82TIbD/MSH/t0q3Ffn33uMog9o5n7n5npqRBpVhp3VSfkkXEg WBXJlYfmOPBFqqDkgS+9UTOrsn8mWno30T7EkPEYYa3a1VpH9rowaewYtlrTOGBvbigA dn/o6kQa+oIGNoOCdWadDZwscP/fxACWNsWC4LIJ3J1f3qUG6v4PF/D1DBFzz6fboIzZ FrHQ== X-Forwarded-Encrypted: i=1; AJvYcCUtWA1Qj/UrfZxpnJQ5c5WbPNHkIAhlBF8sQEs/CwDb7c5renaRxkIRtB9VsDxa3w/wSN8UWRiwA8ywSI/o@lists.postgresql.org X-Gm-Message-State: AOJu0Yy2gIFIn0bAxdMZT3Mxz0tWEIhOxnPDm/WtuvWZLDU8zYuGcfPU P1wFJUqllBIdHPwaoPbqbuvraQG9YoQEZIb0tA6yeRxLkRiOILuwOV3t X-Gm-Gg: ASbGncvE7qrqwNe73f6Y/TBXlpA1eBAeufQBlx3nqHvOzw511YErxZCHrDTRXWyFCl2 7IuOUNAdThBo/1xQzS22ikKbx0O/cVvDPDEXFljfwnuq+ECZCA0P1On9eRvlDiSIq8upRMbPHzc en9HlcLubIRH1eHIFVXGeGcO6nLLtP24+rNJ/781FzClVBNe1Xil1S+sBL2BzWV2RN1BemrwHgb /a1YbfTM0lM5EPLny1zehPk02ogVLKaLcm2I8SjcwubdIcdr3TCbNQj4TBoppBfgCXYHX2qJJ/B y1Dnw+6hqz1A2HoK0AJaSq7CqKdD9Gp6pqkgX/MZ2WQi9P3L3CVJUVSMggMC/vACsd8k8MSPcKO 9xQ== X-Google-Smtp-Source: AGHT+IFJIKi9+MPTlhUWXtE/tmPY5Wc3D4FNkZdHrmjVpg56+VCojDNf4UZfmB18/+QZAI+t6XVurg== X-Received: by 2002:a05:600c:a00b:b0:441:d437:ed19 with SMTP id 5b1f17b1804b1-442fd625914mr275507815e9.11.1748020019083; Fri, 23 May 2025 10:06:59 -0700 (PDT) Received: from smtpclient.apple ([145.224.119.149]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-447f6f05581sm147466795e9.13.2025.05.23.10.06.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 May 2025 10:06:57 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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: Florents Tselai In-Reply-To: <7e9debe6-4e96-4b0d-a801-b531e962ef43@eisentraut.org> Date: Fri, 23 May 2025 20:06:25 +0300 Cc: Robert Haas , Alexander Korotkov , Tom Lane , pgsql-hackers , Andrew Dunstan Content-Transfer-Encoding: quoted-printable Message-Id: <01DC1C38-0692-461B-AA63-5394330356BE@gmail.com> References: <145894.1727298237@sss.pgh.pa.us> <7e9debe6-4e96-4b0d-a801-b531e962ef43@eisentraut.org> To: Peter Eisentraut 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 > On 22 May 2025, at 11:56=E2=80=AFPM, Peter Eisentraut = wrote: >=20 > 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. >=20 > 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. I assume you mean that they=E2=80=99re set at initdb time, so there=E2=80=99= s no mutability concern?=20