pgsql-server: Adjust ExecMakeTableFunctionResult to produce a single

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Adjust ExecMakeTableFunctionResult to produce a single
Date: 2004-09-22 17:41:53
Message-ID: 20040922174153.DA80D329CF8@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql-server/src/backend/executor:
execQual.c (r1.168 -> r1.169)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/executor/execQual.c.diff?r1=1.168&r2=1.169)
nodeFunctionscan.c (r1.26 -> r1.27)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/executor/nodeFunctionscan.c.diff?r1=1.26&r2=1.27)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-09-22 19:11:23 pgsql-server: Issue a CHECKPOINT just after creating the regression
Previous Message User Dpage 2004-09-22 10:08:59 pginstaller - pginst: Run contrib installations inside a transaction.