Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part
Date
Msg-id 34758556-D3D0-42C3-9A1B-CBF64336ADBC@justatheory.com
Whole thread Raw
In response to Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Mar 28, 2026, at 11:02, Andrew Dunstan <andrew@dunslane.net> wrote:

> The key_name production is what allows a keyword to also be used as an object key in $.keyname syntax. The trim
keywords(ltrim, rtrim, btrim) were added there, so $.ltrim as a key works. But $.lower, 
> $.upper, $.initcap, $.replace, and $.split_part as keys would all break.

Ooh, right. It has been so long since I looked at this stuff that I forgot. Thanks for the reminder.

> There are tests added for it.

And for this!

D


Attachment

pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Patch: dumping tables data in multiple chunks in pg_dump
Next
From: Ashutosh Bapat
Date:
Subject: Re: pg_buffercache: Add per-relation summary stats