Fix coredump in plpgsql when trying to return a rowtype result.
Tom Lane <tgl@sss.pgh.pa.us>
Fix coredump in plpgsql when trying to return a rowtype result. Need to return a TupleTableSlot, not just a bare tuple.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/spi.sgml | modified | +130 −0 |
| src/backend/executor/spi.c | modified | +35 −1 |
| src/include/executor/spi.h | modified | +3 −1 |
| src/pl/plpgsql/src/pl_exec.c | modified | +38 −33 |