Patrick Handja <[email protected]> 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
