Revert "Move portal pinning from PL/pgSQL to SPI"
This reverts commit b3617cdfbba1b5381e9d1c6bc0839500e8eb7273.
This broke returning unnamed cursors from PL/pgSQL functions.
Apparently, there are no test cases for this.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b48b2f8793ef256d19274b4ef6ff587fd47ab553
Modified Files
--------------
src/backend/executor/spi.c | 9 ---------
src/pl/plpgsql/src/pl_exec.c | 8 ++++++++
2 files changed, 8 insertions(+), 9 deletions(-)