mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Fix the volatility setting of json{b}_strip_nulls
Commit 4603903d29 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
This commit is contained in:
parent
ccc9be800d
commit
2f6ee7b389
1 changed files with 2 additions and 2 deletions
|
|
@ -611,14 +611,14 @@ CREATE OR REPLACE FUNCTION
|
|||
jsonb_strip_nulls(target jsonb, strip_in_arrays boolean DEFAULT false)
|
||||
RETURNS jsonb
|
||||
LANGUAGE INTERNAL
|
||||
STRICT STABLE PARALLEL SAFE
|
||||
STRICT IMMUTABLE PARALLEL SAFE
|
||||
AS 'jsonb_strip_nulls';
|
||||
|
||||
CREATE OR REPLACE FUNCTION
|
||||
json_strip_nulls(target json, strip_in_arrays boolean DEFAULT false)
|
||||
RETURNS json
|
||||
LANGUAGE INTERNAL
|
||||
STRICT STABLE PARALLEL SAFE
|
||||
STRICT IMMUTABLE PARALLEL SAFE
|
||||
AS 'json_strip_nulls';
|
||||
|
||||
-- default normalization form is NFC, per SQL standard
|
||||
|
|
|
|||
Loading…
Reference in a new issue