| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org | 
| Subject: | pgsql: Fix contrib/hstore_plperl to look through scalar refs. | 
| Date: | 2018-06-18 19:55:19 | 
| Message-ID: | [email protected] | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-committers | 
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/[email protected]
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e3b7f7cc50630dac958a48b533cce04e4222892b
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2018-06-18 21:40:14 | pgsql: Fix jsonb_plperl to convert Perl UV values correctly. | 
| Previous Message | Tom Lane | 2018-06-18 19:32:13 | pgsql: Allow plperl_sv_to_datum to look through scalar refs. |