postgresql/src/pl
Tom Lane 3a382983d1 Allow plperl_sv_to_datum to look through scalar refs.
There seems little reason for the policy of throwing error if we
find a ref to something other than a hash or array.   Recursively
look through the ref, instead.  This makes the behavior in non-transform
cases comparable to what was already instantiated for jsonb_plperl.

Note that because we invoke any available transform function before
considering the ref case, it's up to each transform function whether
it wants to play along with this behavior or do something different.

Because the previous behavior was just to throw a useless error,
this seems unlikely to create any compatibility issues.  Still, given
the lack of field complaints so far, seems best not to back-patch.

Discussion: https://postgr.es/m/28336.1528393969@sss.pgh.pa.us
2018-06-18 15:31:57 -04:00
..
plperl Allow plperl_sv_to_datum to look through scalar refs. 2018-06-18 15:31:57 -04:00
plpgsql Fix misidentification of SQL statement type in plpgsql's exec_stmt_execsql. 2018-05-25 14:31:06 -04:00
plpython Translation updates 2018-05-21 12:29:52 -04:00
tcl Translation updates 2018-05-21 12:29:52 -04:00
Makefile Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:12 -04:00