Add expected tuple descriptor to ReturnSetInfo information for table
Tom Lane <tgl@sss.pgh.pa.us>
Add expected tuple descriptor to ReturnSetInfo information for table functions, per suggestion from John Gray and Joe Conway. Also, fix plpgsql RETURN NEXT to verify that returned values match the expected tupdesc.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/execQual.c | modified | +11 −12 |
| src/backend/executor/nodeFunctionscan.c | modified | +2 −1 |
| src/backend/utils/fmgr/README | modified | +5 −0 |
| src/include/executor/executor.h | modified | +2 −1 |
| src/include/nodes/execnodes.h | modified | +8 −4 |
| src/pl/plpgsql/src/pl_exec.c | modified | +85 −56 |