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

From Alexander Korotkov
Subject Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part
Date
Msg-id CAPpHfdvqA-ROnMfbNh-GDP-TmpEMUSH+FsLjpK7D3MMDDxn=ng@mail.gmail.com
Whole thread Raw
List pgsql-hackers
Hi, Florents!

On Wed, Sep 25, 2024 at 9:18 PM Florents Tselai
<florents.tselai@gmail.com> wrote:
> This patch is a follow-up and generalization to [0].
>
> It adds the following jsonpath methods:  lower, upper, initcap, l/r/btrim, replace, split_part.
>
> It makes jsonpath able to support expressions like these:
>
> select jsonb_path_query('"   hElLo WorlD "',  '$.btrim().lower().upper().lower().replace("hello","bye") starts with
"bye"');
> select jsonb_path_query('"abc~@~def~@~ghi"', '$.split_part("~@~", 2)')

Did you check if these new methods now in SQL standard or project of
SQL standard?

------
Regards,
Alexander Korotkov
Supabase



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part
Next
From: Amit Kapila
Date:
Subject: Re: Documentation to upgrade logical replication cluster