public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andrew Dunstan <[email protected]>
To: Florents Tselai <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: jsonb_strip_nulls with arrays?
Date: Wed, 8 Jan 2025 11:45:02 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+v5N43=48Ddg=Ub313bX3g2qu9VRHzfTP3TAGN10WF6XNX_2w@mail.gmail.com>
References: <[email protected]>
	<[email protected]>
	<CA+v5N43=48Ddg=Ub313bX3g2qu9VRHzfTP3TAGN10WF6XNX_2w@mail.gmail.com>


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.


cheers


andrew


--
Andrew Dunstan
EDB:https://www.enterprisedb.com


view thread (13+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: jsonb_strip_nulls with arrays?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox