@@ -1312,6 +1312,14 @@ LANGUAGE INTERNAL
13121312STRICT IMMUTABLE PARALLEL SAFE
13131313AS ' make_interval' ;
13141314
1315+ CREATE OR REPLACE FUNCTION
1316+ json_set(json_in json, path text [] , replacement json,
1317+ create_if_missing boolean DEFAULT true)
1318+ RETURNS json
1319+ LANGUAGE INTERNAL
1320+ STRICT IMMUTABLE PARALLEL SAFE
1321+ AS ' json_set' ;
1322+
13151323CREATE OR REPLACE FUNCTION
13161324 jsonb_set(jsonb_in jsonb, path text [] , replacement jsonb,
13171325 create_if_missing boolean DEFAULT true)
@@ -1336,6 +1344,14 @@ LANGUAGE INTERNAL
13361344STRICT IMMUTABLE PARALLEL SAFE
13371345AS ' parse_ident' ;
13381346
1347+ CREATE OR REPLACE FUNCTION
1348+ json_insert(json_in json, path text [] , replacement json,
1349+ insert_after boolean DEFAULT false)
1350+ RETURNS json
1351+ LANGUAGE INTERNAL
1352+ STRICT IMMUTABLE PARALLEL SAFE
1353+ AS ' json_insert' ;
1354+
13391355CREATE OR REPLACE FUNCTION
13401356 jsonb_insert(jsonb_in jsonb, path text [] , replacement jsonb,
13411357 insert_after boolean DEFAULT false)
@@ -1424,6 +1440,88 @@ LANGUAGE INTERNAL
14241440STRICT STABLE PARALLEL SAFE
14251441AS ' jsonb_path_query_first_tz' ;
14261442
1443+
1444+ CREATE OR REPLACE FUNCTION
1445+ json_path_exists(target json, path jsonpath, vars json DEFAULT ' {}' ,
1446+ silent boolean DEFAULT false)
1447+ RETURNS boolean
1448+ LANGUAGE INTERNAL
1449+ STRICT IMMUTABLE PARALLEL SAFE
1450+ AS ' json_path_exists' ;
1451+
1452+ CREATE OR REPLACE FUNCTION
1453+ json_path_match(target json, path jsonpath, vars json DEFAULT ' {}' ,
1454+ silent boolean DEFAULT false)
1455+ RETURNS boolean
1456+ LANGUAGE INTERNAL
1457+ STRICT IMMUTABLE PARALLEL SAFE
1458+ AS ' json_path_match' ;
1459+
1460+ CREATE OR REPLACE FUNCTION
1461+ json_path_query(target json, path jsonpath, vars json DEFAULT ' {}' ,
1462+ silent boolean DEFAULT false)
1463+ RETURNS SETOF json
1464+ LANGUAGE INTERNAL
1465+ STRICT IMMUTABLE PARALLEL SAFE
1466+ AS ' json_path_query' ;
1467+
1468+ CREATE OR REPLACE FUNCTION
1469+ json_path_query_array(target json, path jsonpath, vars json DEFAULT ' {}' ,
1470+ silent boolean DEFAULT false)
1471+ RETURNS json
1472+ LANGUAGE INTERNAL
1473+ STRICT IMMUTABLE PARALLEL SAFE
1474+ AS ' json_path_query_array' ;
1475+
1476+ CREATE OR REPLACE FUNCTION
1477+ json_path_query_first(target json, path jsonpath, vars json DEFAULT ' {}' ,
1478+ silent boolean DEFAULT false)
1479+ RETURNS json
1480+ LANGUAGE INTERNAL
1481+ STRICT IMMUTABLE PARALLEL SAFE
1482+ AS ' json_path_query_first' ;
1483+
1484+ CREATE OR REPLACE FUNCTION
1485+ json_path_exists_tz(target json, path jsonpath, vars json DEFAULT ' {}' ,
1486+ silent boolean DEFAULT false)
1487+ RETURNS boolean
1488+ LANGUAGE INTERNAL
1489+ STRICT STABLE PARALLEL SAFE
1490+ AS ' json_path_exists_tz' ;
1491+
1492+ CREATE OR REPLACE FUNCTION
1493+ json_path_match_tz(target json, path jsonpath, vars json DEFAULT ' {}' ,
1494+ silent boolean DEFAULT false)
1495+ RETURNS boolean
1496+ LANGUAGE INTERNAL
1497+ STRICT STABLE PARALLEL SAFE
1498+ AS ' json_path_match_tz' ;
1499+
1500+ CREATE OR REPLACE FUNCTION
1501+ json_path_query_tz(target json, path jsonpath, vars json DEFAULT ' {}' ,
1502+ silent boolean DEFAULT false)
1503+ RETURNS SETOF json
1504+ LANGUAGE INTERNAL
1505+ STRICT STABLE PARALLEL SAFE
1506+ AS ' json_path_query_tz' ;
1507+
1508+ CREATE OR REPLACE FUNCTION
1509+ json_path_query_array_tz(target json, path jsonpath, vars json DEFAULT ' {}' ,
1510+ silent boolean DEFAULT false)
1511+ RETURNS json
1512+ LANGUAGE INTERNAL
1513+ STRICT STABLE PARALLEL SAFE
1514+ AS ' json_path_query_array_tz' ;
1515+
1516+ CREATE OR REPLACE FUNCTION
1517+ json_path_query_first_tz(target json, path jsonpath, vars json DEFAULT ' {}' ,
1518+ silent boolean DEFAULT false)
1519+ RETURNS json
1520+ LANGUAGE INTERNAL
1521+ STRICT STABLE PARALLEL SAFE
1522+ AS ' json_path_query_first_tz' ;
1523+
1524+
14271525-- default normalization form is NFC, per SQL standard
14281526CREATE OR REPLACE FUNCTION
14291527 " normalize" (text , text DEFAULT ' NFC' )
0 commit comments