pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Transforms for jsonb to PL/Python
Date: Wed, 28 Mar 2018 12:39:30 +0000
Message-ID: <E1f1AMU-00031c-9N@gemulon.postgresql.org> (raw)

Transforms for jsonb to PL/Python

Add a new contrib module jsonb_plpython that provide a transform between
jsonb and PL/Python.  jsonb values are converted to appropriate Python
types such as dicts and lists, and vice versa.

Author: Anthony Bykov <a.bykov@postgrespro.ru>
Reviewed-by: Aleksander Alekseev <a.alekseev@postgrespro.ru>
Reviewed-by: Nikita Glukhov <n.gluhov@postgrespro.ru>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f44e3db72ad4097aae078c075a9b3cb3d6b761b

Modified Files
--------------
contrib/Makefile                                   |   4 +-
contrib/jsonb_plpython/.gitignore                  |   6 +
contrib/jsonb_plpython/Makefile                    |  39 ++
contrib/jsonb_plpython/expected/jsonb_plpython.out | 347 ++++++++++++++++
contrib/jsonb_plpython/jsonb_plpython.c            | 453 +++++++++++++++++++++
contrib/jsonb_plpython/jsonb_plpython2u--1.0.sql   |  19 +
contrib/jsonb_plpython/jsonb_plpython2u.control    |   6 +
contrib/jsonb_plpython/jsonb_plpython3u--1.0.sql   |  19 +
contrib/jsonb_plpython/jsonb_plpython3u.control    |   6 +
contrib/jsonb_plpython/jsonb_plpythonu--1.0.sql    |  19 +
contrib/jsonb_plpython/jsonb_plpythonu.control     |   6 +
contrib/jsonb_plpython/sql/jsonb_plpython.sql      | 218 ++++++++++
doc/src/sgml/json.sgml                             |  15 +
13 files changed, 1155 insertions(+), 2 deletions(-)



view thread (9+ messages)  latest in thread

Message-ID: <E1f1AMU-00031c-9N@gemulon.postgresql.org>
Permalink:  ../E1f1AMU-00031c-9N@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f1AMU-00031c-9N@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Transforms for jsonb to PL/Python
  In-Reply-To: <E1f1AMU-00031c-9N@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