Fix coredump in plpgsql when trying to return a rowtype result.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 0053cebea5f3803e853accafb1810afd8cb02b0e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2001-11-05T19:41:56Z
Releases: 7.2.1
Fix coredump in plpgsql when trying to return a rowtype result.
Need to return a TupleTableSlot, not just a bare tuple.

Files

PathChange+/−
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