Revert "Move portal pinning from PL/pgSQL to SPI"

Peter Eisentraut <peter_e@gmx.net>

Commit: b48b2f8793ef256d19274b4ef6ff587fd47ab553
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-01-10T21:01:17Z
Releases: 11.0
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.

Files

PathChange+/−
src/backend/executor/spi.c modified +0 −9
src/pl/plpgsql/src/pl_exec.c modified +8 −0