1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

Remove T_Join and T_Plan

These are abstract node types that don't need to have a node tag
defined.

Discussion: https://www.postgresql.org/message-id/2592455.1657140387%40sss.pgh.pa.us
This commit is contained in:
Peter Eisentraut
2022-07-08 10:38:02 +02:00
parent 3de359f18f
commit 251154bebe
6 changed files with 1 additions and 102 deletions

View File

@@ -138,23 +138,6 @@ CopyPlanFields(const Plan *from, Plan *newnode)
COPY_BITMAPSET_FIELD(allParam);
}
/*
* _copyPlan
*/
static Plan *
_copyPlan(const Plan *from)
{
Plan *newnode = makeNode(Plan);
/*
* copy node superclass fields
*/
CopyPlanFields(from, newnode);
return newnode;
}
/*
* _copyResult
*/
@@ -844,23 +827,6 @@ CopyJoinFields(const Join *from, Join *newnode)
}
/*
* _copyJoin
*/
static Join *
_copyJoin(const Join *from)
{
Join *newnode = makeNode(Join);
/*
* copy node superclass fields
*/
CopyJoinFields(from, newnode);
return newnode;
}
/*
* _copyNestLoop
*/
@@ -5571,9 +5537,6 @@ copyObjectImpl(const void *from)
case T_PlannedStmt:
retval = _copyPlannedStmt(from);
break;
case T_Plan:
retval = _copyPlan(from);
break;
case T_Result:
retval = _copyResult(from);
break;
@@ -5658,9 +5621,6 @@ copyObjectImpl(const void *from)
case T_CustomScan:
retval = _copyCustomScan(from);
break;
case T_Join:
retval = _copyJoin(from);
break;
case T_NestLoop:
retval = _copyNestLoop(from);
break;