Remove the prohibition on executing cursor commands through SPI_execute.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bf8236526be85bc3f061a918dbf49a28bc9bc220
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-03-25T23:27:59Z
Releases: 8.3.0
Remove the prohibition on executing cursor commands through SPI_execute.
Vadim had included this restriction in the original design of the SPI code,
but I'm darned if I can see a reason for it.

I left the macro definition of SPI_ERROR_CURSOR in place, so as not to
needlessly break any SPI callers that are checking for it, but that code
will never actually be returned anymore.

Files

PathChange+/−
doc/src/sgml/spi.sgml modified +2 −12
src/backend/executor/spi.c modified +1 −10
src/include/executor/spi.h modified +2 −2
src/pl/plpgsql/src/pl_exec.c modified +1 −11