Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part

From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Florents Tselai <florents(dot)tselai(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part
Date: 2024-09-26 10:57:25
Message-ID: CAPpHfdvqA-ROnMfbNh-GDP-TmpEMUSH+FsLjpK7D3MMDDxn=ng@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, Florents!

On Wed, Sep 25, 2024 at 9:18 PM Florents Tselai
<florents(dot)tselai(at)gmail(dot)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~(at)~def~@~ghi"', '$.split_part("~(at)~", 2)')

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

------
Regards,
Alexander Korotkov
Supabase

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2024-09-26 10:58:54 Re: Documentation to upgrade logical replication cluster
Previous Message Alexander Korotkov 2024-09-26 10:55:44 Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part