Add jsonb_translate(jsonb, from, to) - Mailing list pgsql-hackers

From Florents Tselai
Subject Add jsonb_translate(jsonb, from, to)
Date
Msg-id CA+v5N41RzrpHVSkeN9EOey0JZbhfS3LB4OsRUD7bzTxrbBAszA@mail.gmail.com
Whole thread Raw
List pgsql-hackers
This is a spur of the moment patch really,
but while going through the process of translating some json data from Greek to English I found myself wishing for $subject.
Inspired by the Unix tr utility.

Here's a working v1

If others find it useful as well,
I'd go ahead with a json implementation 
And an additional parameter to make in-arrays replacement optional.

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: test_json_parser/002_inline is kind of slow
Next
From: Sami Imseih
Date:
Subject: Re: [BUG] temporary file usage report with extended protocol and unnamed portals