]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix contrib/hstore_plperl to look through scalar refs.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jun 2018 19:55:06 +0000 (15:55 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 18 Jun 2018 19:55:06 +0000 (15:55 -0400)
commit645929c545efd06805eda9c9cce5701983915c7f
tree4dc61fc622c8925656074abcd70976ec20c605d0
parente41c7954820955c7517b019e2a31d112668ea119
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
contrib/hstore_plperl/expected/hstore_plperl.out
contrib/hstore_plperl/hstore_plperl.c
contrib/hstore_plperl/sql/hstore_plperl.sql