Remove the prohibition on executing cursor commands through SPI_execute.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| 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 |