Re: Why does jsonb_set() remove non-mentioned keys?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Why does jsonb_set() remove non-mentioned keys?
Date: 2019-07-05 08:59:31
Message-ID: e71033e4-eadf-5235-cc1b-9c54b7bd827c@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gianni Ceccarelli schrieb am 05.07.2019 um 10:00:
>> strict functions with sql null inputs yield sql null output without
>> even executing the function
>
> So when the SQL-level executor sees a call to any function declared
> strict with some NULL parameters, it doesn't call the function at
> all. `whatever_my_function('a string',1234,NULL)` is always `NULL`
>

Ah, I see. Thanks for the clarification

Then I would question if declaring jsonb_set as "strict" makes sense

Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrey Sychev 2019-07-05 09:39:03 Re: Error: rows returned by function are not all of the same row type
Previous Message Simon T 2019-07-05 08:16:28 Vacuum and freeing dead rows