Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4e6eb4a

Browse files
committed
Remove un-needed psort close.
1 parent a292ed2 commit 4e6eb4a

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/backend/executor/nodeMergejoin.c

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMergejoin.c,v 1.17 1998/07/19 05:49:13 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMergejoin.c,v 1.18 1998/07/19 10:05:19 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -354,23 +354,6 @@ ExecMergeTupleDump(ExprContext *econtext, MergeJoinState *mergestate)
354354

355355
#endif
356356

357-
static void
358-
CleanUpSort(Plan *plan)
359-
{
360-
361-
if (plan == NULL)
362-
return;
363-
364-
if (plan->type == T_Sort)
365-
{
366-
Sort *sort = (Sort *) plan;
367-
368-
/* This may need to be fixed or moved somewhere else, bjm */
369-
/* psort_end(sort); */
370-
371-
}
372-
}
373-
374357
/* ----------------------------------------------------------------
375358
* ExecMergeJoin
376359
*
@@ -665,8 +648,6 @@ ExecMergeJoin(MergeJoin *node)
665648
if (TupIsNull(outerTupleSlot))
666649
{
667650
MJ_printf("ExecMergeJoin: **** outer tuple is nil ****\n");
668-
CleanUpSort(node->join.lefttree->lefttree);
669-
CleanUpSort(node->join.righttree->lefttree);
670651
return NULL;
671652
}
672653

0 commit comments

Comments
 (0)