Add a SPI_copytupledesc function that parallels SPI_copytuple --- ie,
Tom Lane <tgl@sss.pgh.pa.us>
Add a SPI_copytupledesc function that parallels SPI_copytuple --- ie, it copies the tupdesc into upper-executor memory. This is necessary for returning tuple descriptors without leaking all of lower exec memory.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/spi.sgml | modified | +122 −4 |
| src/backend/executor/spi.c | modified | +30 −3 |
| src/include/executor/spi.h | modified | +13 −11 |