From: Tom Lane Date: Wed, 7 Apr 2004 18:46:20 +0000 (+0000) Subject: Still another place to make the world safe for zero-column tables. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=3486d68f22affd88da05b06a0d43b8c47e28c013;p=users%2Fbernd%2Fpostgres.git Still another place to make the world safe for zero-column tables. Per example from Jiang Wei. --- diff --git a/src/backend/executor/execJunk.c b/src/backend/executor/execJunk.c index 2279ef8025..b943d163a4 100644 --- a/src/backend/executor/execJunk.c +++ b/src/backend/executor/execJunk.c @@ -263,12 +263,6 @@ ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot) cleanLength = junkfilter->jf_cleanLength; cleanMap = junkfilter->jf_cleanMap; - /* - * Handle the trivial case first. - */ - if (cleanLength == 0) - return (HeapTuple) NULL; - /* * Create the arrays that will hold the attribute values and the null * information for the new "clean" tuple.