From d00ca333c338b40911e89939c3cc771025978595 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 18 Jan 2017 21:37:59 +0100 Subject: Implement array version of jsonb_delete and operator This makes it possible to delete multiple keys from a jsonb value by passing in an array of text values, which makes the operaiton much faster than individually deleting the keys (which would require copying the jsonb structure over and over again. Reviewed by Dmitry Dolgov and Michael Paquier --- doc/src/sgml/func.sgml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index eb1b6984bf0..2504a466e6d 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -10843,6 +10843,14 @@ table2-mapping on their key value. '{"a": "b"}'::jsonb - 'a' + + - + text[] + Delete multiple key/value pairs or string + elements from left operand. Key/value pairs are matched based + on their key value. + '{"a": "b", "c": "d"}'::jsonb - '{a,c}'::text[] + - integer -- cgit v1.2.3