Patrick Handja <patrick.bung...@gmail.com> writes:
> I am not able to get the array returned by get_tuples function, and I am
> thinking it's SPI_finish(). When I tried to print my array tuples itens
> after SPI_finish(), It is not working.

Indeed, SPI_finish() frees everything that was allocated by SPI functions,
including result tuple tables.  You need to do whatever it is you want
to do with the tuples before calling SPI_finish.

                        regards, tom lane


  • SPI return Patrick Handja
    • Re: SPI return Tom Lane

Reply via email to