Adjust ExecMakeTableFunctionResult to produce a single all-nulls row

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

Commit: bebaf7061318cbc82c3077d472d09df38626668a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-09-22T17:41:51Z
Releases: 8.0.0
Adjust ExecMakeTableFunctionResult to produce a single all-nulls row
when a function that returns a single tuple (not a setof tuple) returns
NULL.  This seems to be the most consistent behavior.  It would have
taken a bit less code to make it return an empty table (zero rows) but
ISTM a non-SETOF function ought always return exactly one row.  Per
bug report from Ivan-Sun1.

Files

PathChange+/−
src/backend/executor/execQual.c modified +74 −39
src/backend/executor/nodeFunctionscan.c modified +4 −11