1 -- The function in this script is an SQL version for comparison
2 -- of performance with C version.
6 CREATE OR REPLACE FUNCTION jsonb_delete_left(a jsonb, b jsonb)
11 SELECT ('{' || string_agg(to_json(key) || ':' || value, ',') || '}')
13 WHERE NOT ('{' || to_json(key) || ':' || value || '}')::jsonb <@ b
17 LANGUAGE sql IMMUTABLE STRICT;