From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Use portal pinning in PL/Perl and PL/Python |
Date: | 2018-01-10 22:10:54 |
Message-ID: | E1eZOaE-0001qp-0O@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.)
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/70d6226e4fba26765877fc3c2ec6c468d3ff4084
Modified Files
--------------
src/pl/plperl/plperl.c | 8 ++++++++
src/pl/plpython/plpy_cursorobject.c | 8 ++++++++
2 files changed, 16 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-01-10 22:13:56 | pgsql: Fix sample INSTR() functions in the plpgsql documentation. |
Previous Message | Peter Eisentraut | 2018-01-10 21:40:42 | pgsql: Add tests for PL/pgSQL returning unnamed portals as refcursor |