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 1vOvjk-00DQJm-2J for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Nov 2025 10:30:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vOvjj-00Al0g-0v for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Nov 2025 10:29:59 +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 1vOvji-00Al0Y-32 for pgsql-hackers@lists.postgresql.org; Fri, 28 Nov 2025 10:29:59 +0000 Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vOvjg-001xGU-39 for pgsql-hackers@lists.postgresql.org; Fri, 28 Nov 2025 10:29:58 +0000 Received: by mail-vk1-xa2b.google.com with SMTP id 71dfb90a1353d-5599b119b4aso427660e0c.0 for ; Fri, 28 Nov 2025 02:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764325794; x=1764930594; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BuAbARBElzscdl1KpZibADwm/qwJLHVmuanNxFtxA1k=; b=dkFEMy/cPNhhq6R3cL8WCZOZhFA1kOmUY3p1ZyMmS51ly7Nkf+wm8ifivPOd3CaSDK VvyuRiNCGFBfp5th7lzxyJBODvnWat/+Z9YrcAHAomlTgb64Qx5QqHWzeJ3hMCDQ9/oV Zhupvb+ulW2rstPk7Hwz9KbkML/aZRxI6SxrJ/MhcjWiWUayIxKd0BAhtU5tff2YfQJi vo+S0RtFrcPGu0Q9IQnbzzBBv9AdodujNwIbqtZpvroWu9jWjCLBYjmK7IshNXyKSFWw o7fCWLpMvvN83eidsmXzUJ9DaBqzI/4LEM2tJbcl3J3hIQNOtiF5QfSVB22PiKgsF02q luWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764325794; x=1764930594; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BuAbARBElzscdl1KpZibADwm/qwJLHVmuanNxFtxA1k=; b=Z79ZLgOOb8qUGAeS+OzgpxEZmAJ7QiqAJhve0yGIRC2HKuwQiEmSHJS/yZSyXNbL5g dB5OG5OEdkeHDu/MUF7abuek8KgQObhsKg28+hyltU2n14m+IHBQDsLbx1o0QJiMedV3 HBGTjsHPX/z8l8aBwNf8qKrfevf1mif3xRmXli7/NhQWgi0bqFb3RB8hPujPkGhVbUws 8XKIN6zEAZjSST/fnrfHIHIpFAmlfgtAErlgX32WPEHp2Q6apVjB9TEu/AiPWHWFn6uz 2kuM49gofH38ApWA82fSQ9Ti8Qo0PxLGUhgM7GcX5AZZKbEHyw8dDFleUhDWEHGfre5Z jrxw== X-Forwarded-Encrypted: i=1; AJvYcCXixHoclK+3MATQa5CpchoeS2gE0FX5E3l32DoozLmekd6u9JIKecnEh8J3OvpyNJxKRPxbnmDcbjH3Qeng@lists.postgresql.org X-Gm-Message-State: AOJu0YyBLwG/LHSU6nrNa5wE5mWkr0JhOUasmwWheN6yKBzEx3jSvDye wuc/MPoyz1xAzyCM7HAXzWanIbN66DPu9yy3M6Zvh0i0LLNYxOEaba95N3X1u/bMMQCFlK+mrAI aeU59vr1jVV48pjHy7kTzZd0ExYHVdwI= X-Gm-Gg: ASbGncuJeedLDoKA6me6XNFlAazF0PptSwNUusmznUnWIKsVf0X5trtw0obWmtjU8IL tDGDk6tBIovq9mjeLMSK/BsNuY+7Jbsm+CoAwtz/vx6aZ4yecD8ez2MaGQzhM1HzqjfRfevDXZY VbCV/qY9DbcbUDy4wlGidRufsk+9krhpioqN9oDTTzmEPKzg0smKLrnIXrRNq/gWVNUbWvyXvbi 94AjbxWCOlr2wywjhtx8ZnEM/kZpgCyFkFDkUSjuDmSwj5+LiAcZGrZ6T4Qj04joLlfMnduHJFf XIrUmX+1ZHaUNumqxFRvnr+oPtvs6vNDe8lb9FhfnfdBAIERIjlT90/YxV6mdcvD7ENBq5XJK0m tT0A/cJJQGXe7hKg4s+Rvc6EoYg+X8iXaaTGskenMkSgGBvm9wgrk7wX0N5prxc0uiqsDcsh6M6 IBqIIw0IA= X-Google-Smtp-Source: AGHT+IFheO4Caa2f6ReuzcNZsfcdbOAgLDLOsWI9dWZHCZCLfqMMuT7WYP3+xO+KeAav+lHEjtvoJVif8Di+yBkarhY= X-Received: by 2002:a05:6122:3a11:b0:556:92b0:510a with SMTP id 71dfb90a1353d-55b8d79f00emr6508688e0c.14.1764325794604; Fri, 28 Nov 2025 02:29:54 -0800 (PST) MIME-Version: 1.0 References: <202510210803.3b3vfvygxtjl@alvherre.pgsql> <87530674-E6B6-4C97-A704-78C7E07CF01F@gmail.com> <3DC56A6A-9525-4C05-B45A-9A135A66BC34@justatheory.com> In-Reply-To: <3DC56A6A-9525-4C05-B45A-9A135A66BC34@justatheory.com> From: jian he Date: Fri, 28 Nov 2025 18:29:17 +0800 X-Gm-Features: AWmQ_blohPr4qdLUeer0SA3ly1fbpvZ7wRDm266YkS0dGNo7UodZmEtTuHEMX2E Message-ID: Subject: Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part To: "David E. Wheeler" Cc: Chao Li , =?UTF-8?Q?=C3=81lvaro_Herrera?= , Florents Tselai , Tom Lane , Peter Eisentraut , Robert Haas , Alexander Korotkov , pgsql-hackers , Andrew Dunstan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Oct 29, 2025 at 3:39=E2=80=AFAM David E. Wheeler wrote: > > Updated patches attached. > > Best, > > David > hi. /* * All node's type of jsonpath expression * * These become part of the on-disk representation of the jsonpath type. * Therefore, to preserve pg_upgradability, the order must not be changed, = and * new values must be added at the end. * * It is recommended that switch cases etc. in other parts of the code also * use this order, to maintain some consistency. */ typedef enum JsonPathItemType some "switch" in the attached patch does not preserve the JsonPathItemType = order consistency, like executeItemOptUnwrapTarget. -- jian https://www.enterprisedb.com/