From 7d674d497dd2009ec81b63607445b7262e08c553 Mon Sep 17 00:00:00 2001 From: Alex Kwak Date: Mon, 2 Jan 2023 14:53:09 +0900 Subject: [PATCH] fix: Add `_copyGraphVLE` func --- src/backend/nodes/copyfuncs.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 0b265b2410e..cff6a21665f 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -5452,6 +5452,19 @@ _copyGraphDelElem(const GraphDelElem *from) return newnode; } +static GraphVLE * +_copyGraphVLE(const GraphVLE *from) +{ + GraphVLE *newnode = makeNode(GraphVLE); + + CopyPlanFields((const Plan *) from, (Plan *) newnode); + + COPY_NODE_FIELD(subplan); + COPY_NODE_FIELD(vle_rel); + + return newnode; +} + /* **************************************************************** * extensible.h copy functions * **************************************************************** @@ -6563,6 +6576,9 @@ copyObjectImpl(const void *from) case T_GraphDelElem: retval = _copyGraphDelElem(from); break; + case T_GraphVLE: + retval = _copyGraphVLE(from); + break; /* * MISCELLANEOUS NODES