Re: jsonb_strip_nulls with arrays?

From: Florents Tselai <florents(dot)tselai(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: jsonb_strip_nulls with arrays?
Date: 2025-01-18 09:51:22
Message-ID: FBED3D5A-5AF7-40B5-BEDF-51842B0194C4@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 8 Jan 2025, at 6:45 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
>
>
> On 2024-09-17 Tu 4:53 PM, Florents Tselai wrote:
>>
>>> We could, if we're going to do anything at all in this area. Another possibility would be to provide a second optional parameter for json{b}_strip_nulls. That's probably a better way to go.
>>>
>> Here's a patch that adds that argument (only for jsonb; no json implementation yet)
>>
>>
>
> I think it looks sane. We're not stripping a top level null, which is one thing I looked out for.
>
> I think we need a json implementation as well, though.
>
>
>
Thanks for having a Look, Andrew;
if there aren’t any other objections, I’ll come back with a json implementation too.
> cheers
>
>
>
> andrew
>
>
>
> --
> Andrew Dunstan
> EDB: https://www.enterprisedb.com <https://www.enterprisedb.com/>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2025-01-18 11:12:11 Re: Parallel heap vacuum
Previous Message Sergey Tatarintsev 2025-01-18 08:59:17 Re: create subscription with (origin = none, copy_data = on)