Re: BUG #19409: Function jsonb_strip_nulls() changed from immutable to stable.

Andrew Dunstan <andrew@dunslane.net>

From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: lucio.chiessi@trustly.com, pgsql-bugs@lists.postgresql.org, Florents Tselai <florents.tselai@gmail.com>
Date: 2026-02-16T20:19:32Z
Lists: pgsql-bugs
On 2026-02-16 Mo 11:48 AM, Tom Lane wrote:
> Andrew Dunstan<andrew@dunslane.net> writes:
>> In penance for this I have worked up a mechanism to generate
>> default-setting statements from pg_proc.dat that I will post separately
>> about in -hackers. In the meantime, I guess we should fix it in release
>> 18 and master, with a release note that people might need to do a manual
>> update if affected, along the lines of
>>      update pg_proc set provolatile = 'i' where oid in (3261,3262);
> Yeah, the $64 question is what to do in REL_18_STABLE.  In master
> we can commit this with a catversion bump, but we can't change
> v18's catversion.  I think I agree that we should just change v18's
> system_functions.sql anyway.  That will at least solve it for people
> upgrading in future.


OK, barring objections I will make that happen in a day or two.


cheers


andrew

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

Commits

  1. Simplify creation of built-in functions with default arguments.

  2. Fix the volatility setting of json{b}_strip_nulls