pgsql: Fix contrib/hstore_plperl to look through scalar refs.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix contrib/hstore_plperl to look through scalar refs.
Дата
Msg-id E1fV0FD-0006gZ-Pz@gemulon.postgresql.org
обсуждение исходный текст
Список 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/28336.1528393969@sss.pgh.pa.us

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/645929c545efd06805eda9c9cce5701983915c7f

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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Allow plperl_sv_to_datum to look through scalar refs.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix jsonb_plperl to convert Perl UV values correctly.