Re: Transform for pl/perl
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, Pavel Stehule <pavel.stehule@gmail.com>, Nikita Glukhov <n.gluhov@postgrespro.ru>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-06-14T19:54:07Z
Lists: pgsql-hackers
On 2018-Jun-08, Tom Lane wrote: > I wrote: > > I'm inclined to think that auto-dereference is indeed a good idea, > > and am tempted to go make that change to make all this consistent. > > Comments? > > Here's a draft patch for that. I ended up only changing > plperl_sv_to_datum. There is maybe a case for doing something > similar in plperl_return_next_internal's fn_retistuple code path, > so that you can return a reference-to-reference-to-hash there; > but I was unable to muster much enthusiasm for touching that. ilmari, did you have time to give Tom's patch a spin? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix jsonb_plperl to convert Perl UV values correctly.
- 93b6e03ab479 11.0 landed
-
Fix contrib/hstore_plperl to look through scalar refs.
- e3b7f7cc5063 11.0 landed
- 7594b7a53366 10.5 landed
- 645929c545ef 9.5.14 landed
- 1bebfb9b6365 9.6.10 landed
-
Allow plperl_sv_to_datum to look through scalar refs.
- 3a382983d142 11.0 landed
-
Fix excessive enreferencing in jsonb-to-plperl transform.
- 1731e3741cbb 11.0 landed