pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Implement array version of jsonb_delete and operator
Date: Wed, 18 Jan 2017 20:42:09 +0000
Message-ID: <E1cTx3Z-0006kf-KL@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d00ca333c338b40911e89939c3cc771025978595

Modified Files
--------------
doc/src/sgml/func.sgml              |  8 ++++
src/backend/utils/adt/jsonfuncs.c   | 86 +++++++++++++++++++++++++++++++++++++
src/include/catalog/pg_operator.h   |  2 +
src/include/catalog/pg_proc.h       |  3 +-
src/test/regress/expected/jsonb.out | 18 ++++++++
src/test/regress/sql/jsonb.sql      |  4 ++
6 files changed, 120 insertions(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1cTx3Z-0006kf-KL@gemulon.postgresql.org>
Permalink:  ../E1cTx3Z-0006kf-KL@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cTx3Z-0006kf-KL@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: magnus@hagander.net
  Subject: Re: pgsql: Implement array version of jsonb_delete and operator
  In-Reply-To: <E1cTx3Z-0006kf-KL@gemulon.postgresql.org>
  References: <E1cTx3Z-0006kf-KL@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox