Change SPI functions to use a `long' when specifying the number of tuples
authorNeil Conway <neilc@samurai.com>
Mon, 2 May 2005 00:37:07 +0000 (00:37 +0000)
committerNeil Conway <neilc@samurai.com>
Mon, 2 May 2005 00:37:07 +0000 (00:37 +0000)
commit8725ede8b1cc4b788067a39c5064061711ab121e
treeaf293ab6246c6e318a95a4f9a6fa9c218571f557
parent126a2a23fbfd9dcc84d8103d2fe0fec05f219841
Change SPI functions to use a `long' when specifying the number of tuples
to produce when running the executor. This is consistent with the internal
executor APIs (such as ExecutorRun), which also use a long for this purpose.
It also allows FETCH_ALL to be passed -- since FETCH_ALL is defined as
LONG_MAX, this wouldn't have worked on platforms where int and long are of
different sizes. Per report from Tzahi Fadida.
doc/src/sgml/spi.sgml
src/backend/executor/spi.c
src/include/executor/spi.h
src/pl/plpgsql/src/pl_exec.c
src/pl/plpython/plpython.c