Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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)

pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group