Add new SPI_OK_REWRITTEN return code to SPI_execute and friends, for the
commit953d6232ed51694d82a23ced8ade86efe650c28f
authorheikki <heikki>
Wed, 21 Jan 2009 11:02:40 +0000 (21 11:02 +0000)
committerheikki <heikki>
Wed, 21 Jan 2009 11:02:40 +0000 (21 11:02 +0000)
tree959ce725f5c1c392e90528118019d500f6464615
parente855b3ceb8fe7cf9e214362871be0026c625aae0
Add new SPI_OK_REWRITTEN return code to SPI_execute and friends, for the
case that the command is rewritten into another type of command. The old
behavior to return the command tag of the last executed command was
pretty surprising. In PL/pgSQL, for example, it meant that if a command
was rewritten to a utility statement, FOUND wasn't set at all.
doc/src/sgml/spi.sgml
src/backend/executor/spi.c
src/include/executor/spi.h
src/pl/plpgsql/src/pl_exec.c