OSDN Git Service

Remove the prohibition on executing cursor commands through SPI_execute.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2007 23:27:59 +0000 (23:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2007 23:27:59 +0000 (23:27 +0000)
commitbf8236526be85bc3f061a918dbf49a28bc9bc220
tree884ac85f29507b9885d1afc805be8ac65d5f2089
parente85a01df678c9621c225200f1309ca8e682338ff
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.
doc/src/sgml/spi.sgml
src/backend/executor/spi.c
src/include/executor/spi.h
src/pl/plpgsql/src/pl_exec.c