{"Entry":{"collection":"func","key":"jsonb-set-lax","name":"jsonb_set_lax","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"13"}],"content_hash":"50b19468f997133e49c8f4511b402fb68fe15ff30065331a7b64adb6cee31ee5","first_version":"13","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.814522+08:00","last_version":"20","name":"jsonb_set_lax","name_key":"jsonb_set_lax","position":16053,"present_in":["13","14","15","16","17","18","19","20"],"signature":"jsonb_set_lax ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean [, null_value_treatment text ]] ) → jsonb","signature_count":1,"slug":"jsonb-set-lax","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"If new_value is not NULL, behaves identically to jsonb_set.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-set-lax","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-set-lax","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"If new_value is not NULL, behaves identically to jsonb_set. Otherwise behaves according to the value of null_value_treatment which must be one of 'raise_exception', 'use_json_null', 'delete_key', or 'return_target'. The default is 'use_json_null'.","description_html":"If \u003cem class=\"parameter\"\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e is not \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e, behaves identically to \u003ccode class=\"literal\"\u003ejsonb_set\u003c/code\u003e. Otherwise behaves according to the value of \u003cem class=\"parameter\"\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e which must be one of \u003ccode class=\"literal\"\u003e'raise_exception'\u003c/code\u003e, \u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e, \u003ccode class=\"literal\"\u003e'delete_key'\u003c/code\u003e, or \u003ccode class=\"literal\"\u003e'return_target'\u003c/code\u003e. The default is \u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"},"group":"json","group_label":"Json Functions And Operators","lang":"en","layout":"table-new","pages":["functions-json.html"],"prose_only":false,"signatures":[{"description":"If new_value is not NULL, behaves identically to jsonb_set. Otherwise behaves according to the value of null_value_treatment which must be one of 'raise_exception', 'use_json_null', 'delete_key', or 'return_target'. The default is 'use_json_null'.","description_html":"If \u003cem class=\"parameter\"\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e is not \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e, behaves identically to \u003ccode class=\"literal\"\u003ejsonb_set\u003c/code\u003e. Otherwise behaves according to the value of \u003cem class=\"parameter\"\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e which must be one of \u003ccode class=\"literal\"\u003e'raise_exception'\u003c/code\u003e, \u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e, \u003ccode class=\"literal\"\u003e'delete_key'\u003c/code\u003e, or \u003ccode class=\"literal\"\u003e'return_target'\u003c/code\u003e. The default is \u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"jsonb_set_lax('[{\"f1\":1,\"f2\":null},2,null,3]', '{0,f1}', null)","result":"[{\"f1\": null, \"f2\": null}, 2, null, 3]"},{"expr":"jsonb_set_lax('[{\"f1\":99,\"f2\":null},2]', '{0,f3}', null, true, 'return_target')","result":"[{\"f1\": 99, \"f2\": null}, 2]"}],"html":"\u003ccode class=\"function\"\u003ejsonb_set_lax\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epath\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ecreate_if_missing\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e\u003c/span\u003e ]\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003ejsonb\u003c/code\u003e","returns":"jsonb","text":"jsonb_set_lax ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean [, null_value_treatment text ]] ) → jsonb","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-set-lax","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"jsonb_set_lax","Summary":"如果new_value不是NULL，则行为与jsonb_set完全相同。否则，根据null_value_treatment的值进行处理，其值必须是'raise_exception'、'use_json_null'、'delete_key'或'return_target'之一。默认值为'use_json_null'。","BodyHTML":"如果\u003cem\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e不是\u003ccode\u003eNULL\u003c/code\u003e，则行为与\u003ccode\u003ejsonb_set\u003c/code\u003e完全相同。否则，根据\u003cem\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e的值进行处理，其值必须是\u003ccode\u003e\u0026#39;raise_exception\u0026#39;\u003c/code\u003e、\u003ccode\u003e\u0026#39;use_json_null\u0026#39;\u003c/code\u003e、\u003ccode\u003e\u0026#39;delete_key\u0026#39;\u003c/code\u003e或\u003ccode\u003e\u0026#39;return_target\u0026#39;\u003c/code\u003e之一。默认值为\u003ccode\u003e\u0026#39;use_json_null\u0026#39;\u003c/code\u003e。\u003cpre\u003ejsonb_set_lax ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean [, null_value_treatment text ]] ) → jsonb\u003c/pre\u003e如果\u003cem\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e不是\u003ccode\u003eNULL\u003c/code\u003e，则行为与\u003ccode\u003ejsonb_set\u003c/code\u003e完全相同。否则，根据\u003cem\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e的值进行处理，其值必须是\u003ccode\u003e\u0026#39;raise_exception\u0026#39;\u003c/code\u003e、\u003ccode\u003e\u0026#39;use_json_null\u0026#39;\u003c/code\u003e、\u003ccode\u003e\u0026#39;delete_key\u0026#39;\u003c/code\u003e或\u003ccode\u003e\u0026#39;return_target\u0026#39;\u003c/code\u003e之一。默认值为\u003ccode\u003e\u0026#39;use_json_null\u0026#39;\u003c/code\u003e。","SourceRevision":"1b5ca64c","ContentHash":"7b8494df414a4210f0665513466a492cd2b4609678cb803580b96bd1487939b3","Payload":{"description_zh":"如果new_value不是NULL，则行为与jsonb_set完全相同。否则，根据null_value_treatment的值进行处理，其值必须是'raise_exception'、'use_json_null'、'delete_key'或'return_target'之一。默认值为'use_json_null'。","description_zh_html":"如果\u003cem class=\"parameter\"\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e不是\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e，则行为与\u003ccode class=\"literal\"\u003ejsonb_set\u003c/code\u003e完全相同。否则，根据\u003cem class=\"parameter\"\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e的值进行处理，其值必须是\u003ccode class=\"literal\"\u003e'raise_exception'\u003c/code\u003e、\u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e、\u003ccode class=\"literal\"\u003e'delete_key'\u003c/code\u003e或\u003ccode class=\"literal\"\u003e'return_target'\u003c/code\u003e之一。默认值为\u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e。","signatures":[{"description_zh":"如果new_value不是NULL，则行为与jsonb_set完全相同。否则，根据null_value_treatment的值进行处理，其值必须是'raise_exception'、'use_json_null'、'delete_key'或'return_target'之一。默认值为'use_json_null'。","description_zh_html":"如果\u003cem class=\"parameter\"\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e不是\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e，则行为与\u003ccode class=\"literal\"\u003ejsonb_set\u003c/code\u003e完全相同。否则，根据\u003cem class=\"parameter\"\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e的值进行处理，其值必须是\u003ccode class=\"literal\"\u003e'raise_exception'\u003c/code\u003e、\u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e、\u003ccode class=\"literal\"\u003e'delete_key'\u003c/code\u003e或\u003ccode class=\"literal\"\u003e'return_target'\u003c/code\u003e之一。默认值为\u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e。","returns":"jsonb","text":"jsonb_set_lax ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean [, null_value_treatment text ]] ) → jsonb","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"75ece35e618443b12c868f960bf110f043c8e9ba1a927e46ce56d12773e92706","Text":"jsonb_set_lax ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean [, null_value_treatment text ]] ) → jsonb","Returns":"jsonb","Payload":{"description":"If new_value is not NULL, behaves identically to jsonb_set. Otherwise behaves according to the value of null_value_treatment which must be one of 'raise_exception', 'use_json_null', 'delete_key', or 'return_target'. The default is 'use_json_null'.","description_html":"If \u003cem class=\"parameter\"\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e is not \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e, behaves identically to \u003ccode class=\"literal\"\u003ejsonb_set\u003c/code\u003e. Otherwise behaves according to the value of \u003cem class=\"parameter\"\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e which must be one of \u003ccode class=\"literal\"\u003e'raise_exception'\u003c/code\u003e, \u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e, \u003ccode class=\"literal\"\u003e'delete_key'\u003c/code\u003e, or \u003ccode class=\"literal\"\u003e'return_target'\u003c/code\u003e. The default is \u003ccode class=\"literal\"\u003e'use_json_null'\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"jsonb_set_lax('[{\"f1\":1,\"f2\":null},2,null,3]', '{0,f1}', null)","result":"[{\"f1\": null, \"f2\": null}, 2, null, 3]"},{"expr":"jsonb_set_lax('[{\"f1\":99,\"f2\":null},2]', '{0,f3}', null, true, 'return_target')","result":"[{\"f1\": 99, \"f2\": null}, 2]"}],"html":"\u003ccode class=\"function\"\u003ejsonb_set_lax\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003etarget\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epath\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003enew_value\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ecreate_if_missing\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003enull_value_treatment\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e\u003c/span\u003e ]\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003ejsonb\u003c/code\u003e","returns":"jsonb","text":"jsonb_set_lax ( target jsonb, path text[], new_value jsonb [, create_if_missing boolean [, null_value_treatment text ]] ) → jsonb","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
