Use portal pinning in PL/Perl and PL/Python

Peter Eisentraut <peter_e@gmx.net>

Commit: 70d6226e4fba26765877fc3c2ec6c468d3ff4084
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-01-10T22:10:32Z
Releases: 11.0
Use portal pinning in PL/Perl and PL/Python

PL/pgSQL "pins" internally generated portals so that user code cannot
close them by guessing their names.  Add this functionality to PL/Perl
and PL/Python as well, preventing users from manually closing cursors
created by spi_query and plpy.cursor, respectively.  (PL/Tcl does not
currently offer any cursor functionality.)

Files

PathChange+/−
src/pl/plperl/plperl.c modified +8 −0
src/pl/plpython/plpy_cursorobject.c modified +8 −0