Leif Jensen <leif(at)crysberg(dot)dk> writes:
> Thank you for the suggestions. I didn't know anything about SPI_push and
> SPI_pop and I will walk through my code and stuff them in. Am I looking at
> some wrong documentation ? I never saw anything about those ?
They weren't well documented in old releases, but see
http://www.postgresql.org/docs/8.0/static/spi-spi-push.html
http://www.postgresql.org/docs/8.0/static/spi-spi-pop.html
regards, tom lane