pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix contrib/hstore_plperl to look through scalar refs.
Date: Mon, 18 Jun 2018 19:55:19 +0000
Message-ID: <E1fV0FD-0006gY-Py@gemulon.postgresql.org> (raw)

Fix contrib/hstore_plperl to look through scalar refs.

Bring this transform function into sync with the policy established
by commit 3a382983d.

Also, fix it to make sure that what it drills down to is indeed a
hash, and not some other kind of Perl SV.  Previously, the test
cases added here provoked crashes.

Because of the crash hazard, back-patch to 9.5 where this module
was introduced.

Discussion: https://postgr.es/m/28336.1528393969@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1bebfb9b63657c9d3257e3ba374e477138ca22af

Modified Files
--------------
contrib/hstore_plperl/expected/hstore_plperl.out | 19 +++++++++++++++++++
contrib/hstore_plperl/hstore_plperl.c            | 14 +++++++++++++-
contrib/hstore_plperl/sql/hstore_plperl.sql      | 19 +++++++++++++++++++
3 files changed, 51 insertions(+), 1 deletion(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1fV0FD-0006gY-Py@gemulon.postgresql.org>
Permalink:  ../E1fV0FD-0006gY-Py@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fV0FD-0006gY-Py@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix contrib/hstore_plperl to look through scalar refs.
  In-Reply-To: <E1fV0FD-0006gY-Py@gemulon.postgresql.org>
  References: <E1fV0FD-0006gY-Py@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