Skip to content

Commit a6bbfed

Browse files
committed
Remove test for NULL node in ExecProcNode(). No place ever calls
ExecProcNode() with a NULL value, so the test couldn't do anything for us except maybe mask bugs. Removing it probably doesn't save anything much either, but then again this is a hot-spot routine.
1 parent ad161bc commit a6bbfed

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/backend/executor/execProcnode.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/backend/executor/execProcnode.c,v 1.47 2005/03/25 21:57:58 tgl Exp $
15+
* $PostgreSQL: pgsql/src/backend/executor/execProcnode.c,v 1.48 2005/04/06 20:13:49 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -271,12 +271,6 @@ ExecProcNode(PlanState *node)
271271

272272
CHECK_FOR_INTERRUPTS();
273273

274-
/*
275-
* deal with NULL nodes..
276-
*/
277-
if (node == NULL)
278-
return NULL;
279-
280274
if (node->chgParam != NULL) /* something changed */
281275
ExecReScan(node, NULL); /* let ReScan handle this */
282276

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy