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 1uHnwq-00A2tG-7N for pgsql-hackers@arkaria.postgresql.org; Wed, 21 May 2025 18:13:48 +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 1uHnwo-009fzq-6H for pgsql-hackers@arkaria.postgresql.org; Wed, 21 May 2025 18:13:46 +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 1uHnwn-009fzg-Gj for pgsql-hackers@lists.postgresql.org; Wed, 21 May 2025 18:13:45 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uHnwk-000B92-2G for pgsql-hackers@lists.postgresql.org; Wed, 21 May 2025 18:13:44 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 0999411400CC; Wed, 21 May 2025 14:13:41 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Wed, 21 May 2025 14:13:41 -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=1747851220; x= 1747937620; bh=jTbeGYH1nMcILNRAKcuNZzStAktj7KNfJq07+NwpMls=; b=W LVjD5+sA9QvvmZGJ249+xCJd21l9tppUPTP7vCpwOPWH52O4qpYsdgAdbXR19M2B RxvUqU/5uG06Iw3UXhd37+0bNRyLpoG0xZwjsa1eNp3pIalTIX4NIlM46ZL6/QBP oSwU+WcoNxTh4N+3dgL3LAjKDHPVP4sFDMYc12ffOUDzvEKTApCl0IJshlMonle8 CEUdQLLsAeIvXv0l0b++ElM3USjD+3bqKIxGeeANkjG+Acf6WqOORJm85V1TQABF vyFWb4cqNZ4sjBSU/QHNJw1LnaiK/2PSpf9VQX5xGUmtFRqX/x8kP1bzcnZ8bR/v 2l1xIiHby9lCHdTT4Ihuw== 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= 1747851220; x=1747937620; bh=jTbeGYH1nMcILNRAKcuNZzStAktj7KNfJq0 7+NwpMls=; b=Fd0mKv/X2C9M4OUXPpxczT1dUXxSl34BCTXSR6Ac8XrRNzyeCyF Q/Vev8oYPgIgHQv7dfNkR1vGfHYTn4czybWpR5Xbrxg6uDNao+ZYrswaBzUewPaO or3f7DfSgrTuHlrA81ufZH997FveG2HblRcPOlASEKvRSAwpyS7xcoIKJcE7+G9l VgoHeB+cqn/e22tWIPF6WvadDv/kmivYVzJqqTn7qcIsh3HtiCs5xu0dPYTYKEBJ FVvZV8Qz/8rnAASUR8t8q8j7yFIaNI+kxpIyhsTzzVUkmnUpFy+l/H7LG3Tq22ui N2ucVhBJibYvBbMGW6luPPow1t3ikodKGuA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddtgdefjeejucdltddurdegfedvrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptggguffhjgffvefk fhfvofesghdtmherhhdtjeenucfhrhhomhepfdffrghvihguucfgrdcuhghhvggvlhgvrh dfuceouggrvhhiugesjhhushhtrghthhgvohhrhidrtghomheqnecuggftrfgrthhtvghr nhephffhieeitdefkeevhfehtdfgieehgfffleetjeetkeeitdeugeejgeefffffkeeine cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggrvhhi ugesjhhushhtrghthhgvohhrhidrtghomhdpnhgspghrtghpthhtohepjedpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtgho mhdprhgtphhtthhopehflhhorhgvnhhtshdrthhsvghlrghisehgmhgrihhlrdgtohhmpd hrtghpthhtoheprggvkhhorhhothhkohhvsehgmhgrihhlrdgtohhmpdhrtghpthhtohep thhglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtthhopehpghhsqhhlqdhhrggtkh gvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopegrnhgu rhgvfiesughunhhslhgrnhgvrdhnvghtpdhrtghpthhtohepphgvthgvrhesvghishgvnh htrhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: i7c334307:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 May 2025 14:13:39 -0400 (EDT) Content-Type: multipart/signed; boundary="Apple-Mail=_1D38C03E-9488-497A-8B6B-C5FA4557B9CA"; 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: Date: Wed, 21 May 2025 14:13:28 -0400 Cc: Florents Tselai , Alexander Korotkov , Tom Lane , pgsql-hackers , Andrew Dunstan , Peter Eisentraut Message-Id: <6A995806-5B9C-455C-8923-53A0448893BF@justatheory.com> References: <145894.1727298237@sss.pgh.pa.us> <88A95900-E976-43BE-A73A-45AA75A11EE7@justatheory.com> <3682F2FE-AB57-4799-A439-7DA518E978A4@gmail.com> To: Robert Haas 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=_1D38C03E-9488-497A-8B6B-C5FA4557B9CA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On May 21, 2025, at 14:06, Robert Haas wrote: > No, that wouldn't be too much work, but the issue is that people will > keep using the _tz versions and when we eventually try to remove them > those people will complain no matter how prominent we make the > deprecation notice. If we want to go this route, maybe we should do > something like: >=20 > 1. Add the new versions with a _s suffix or whatever. >=20 > 2. Invent a GUC jsonb_tz_warning =3D { on | off } that advises you to > use the new functions instead, whenever you use the old ones. >=20 > 3. After N years, flip the default value from off to on. >=20 > 4. After M additional years, remove the old functions and the GUC. >=20 > 5. Still get complaints. Complainers gonna complain. =F0=9F=AB=A0 Any idea how widespread the use of the function is? It was added in 17, = and I=E2=80=99ve met few who have really dug into the jonpath stuff yet, = let alone needed the time zone conversion functionality. Best, David --Apple-Mail=_1D38C03E-9488-497A-8B6B-C5FA4557B9CA 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+KfmbOQis6ZycGGkt9idPjIgfEFAmguF8gACgkQkt9idPjI gfGhNA//cunqxdm/SX+PTC99tWQd3Z57T0NgRJnfzbAlfxZDb3BfvUdRFVWS6XJJ g4YqSz8tD6lVBAK1cqSz+datRMbNdIfYNxcCR2fTsjUac/GYESToWs37bxGgZV/l 7VtUwMikFXA/U8noIskPX8CCj6TIy1G5B30BodT08TWlLsmCDThKt1mPCXhk+Rae gcIJaF0Iy7Q8YzvE22hTqyIi8lYT8IBNKfdNjS+X4U7e1Xp3ZCLxmbIDukjZqjFf EDcwtgU8HMoVXVMjq2eU2cAIi7fgVYD3DIW+gyNAMZrKXw8eZzkW/cOCJnX8k6qj jFEnliBCpz6L2ltroDLd4BoxVjmsJUMk0cCTAZ3bjo5DMsjc7WQ8wp1ItxcjhCtv Gx57Rpm1jhTqe1RJeLLwLscgnWIrFvYxzhbtHK6teGflIQzy2Ju7AbDHHuoAVAYN ED5hQE9Chub8p0JLhDLA39dmMrh9vN1J8R6F/lfC7QvjWz/fnBoteETYO6eQ+ANg XtkqGyLlP7//xl1xVxXNht3erfURRE/3wo/Mr3MV62OrJdKd4ys+kVorMBaBEOaW 1Hc67izKYCvcbW6sF8evdCEJ0FdLp9KAEjI82nLy82LWfTiAVGtvRCB7dbiIF/rO WuQcc9TpdVUfiCGpvBno/10r/tQmYEx38T6ST1HqydGfFHJD2Tg= =X7hk -----END PGP SIGNATURE----- --Apple-Mail=_1D38C03E-9488-497A-8B6B-C5FA4557B9CA--