]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix the volatility setting of json{b}_strip_nulls
authorAndrew Dunstan <andrew@dunslane.net>
Tue, 17 Feb 2026 20:43:32 +0000 (15:43 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 18 Feb 2026 15:31:03 +0000 (10:31 -0500)
commit2f6ee7b389c2b570ac55eb25273872b729d397c8
tree3e29d10bfeca328862846583da7d161e0bee867c
parentccc9be800dddf1662aa25aa4ee27aa71965b3fa9
Fix the volatility setting of json{b}_strip_nulls

Commit 4603903d294 unfortunately reset the volatility of these functions
to STABLE whereas they had previously been set to IMMUTABLE. We can't
force a catalog update in the stable release, although a pg_update would
probably do the trick. A simpler fix, though, for affected users is
probably a simple catalog surgery along the lines of:

   UPDATE pg_proc SET provolatile = 'i' WHERE oid in (3261,3262);

Applied to 18 only. In master we are planning to get rid of the separate
redeclarations for defaults in system_functions.sql.

Bug: #19409
Reported-By: Lucio Chiessi <lucio.chiessi@trustly.com>
Discussion: https://postgr.es/m/19409-e16cd2605e59a4af@postgresql.org
src/backend/catalog/system_functions.sql