Commit 62a4a1af authored by Stephen Frost's avatar Stephen Frost

Add hasRowSecurity to copyfuncs/outfuncs

The RLS patch added a hasRowSecurity field to PlannerGlobal and
PlannedStmt but didn't update nodes/copyfuncs.c and nodes/outfuncs.c to
reflect those additional fields.

Correct that by adding entries to the appropriate functions for those
fields.

Pointed out by Robert.
parent 6f9bd50e
...@@ -93,6 +93,7 @@ _copyPlannedStmt(const PlannedStmt *from) ...@@ -93,6 +93,7 @@ _copyPlannedStmt(const PlannedStmt *from)
COPY_NODE_FIELD(relationOids); COPY_NODE_FIELD(relationOids);
COPY_NODE_FIELD(invalItems); COPY_NODE_FIELD(invalItems);
COPY_SCALAR_FIELD(nParamExec); COPY_SCALAR_FIELD(nParamExec);
COPY_SCALAR_FIELD(hasRowSecurity);
return newnode; return newnode;
} }
......
...@@ -255,6 +255,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node) ...@@ -255,6 +255,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
WRITE_NODE_FIELD(relationOids); WRITE_NODE_FIELD(relationOids);
WRITE_NODE_FIELD(invalItems); WRITE_NODE_FIELD(invalItems);
WRITE_INT_FIELD(nParamExec); WRITE_INT_FIELD(nParamExec);
WRITE_BOOL_FIELD(hasRowSecurity);
} }
/* /*
...@@ -1719,6 +1720,7 @@ _outPlannerGlobal(StringInfo str, const PlannerGlobal *node) ...@@ -1719,6 +1720,7 @@ _outPlannerGlobal(StringInfo str, const PlannerGlobal *node)
WRITE_UINT_FIELD(lastPHId); WRITE_UINT_FIELD(lastPHId);
WRITE_UINT_FIELD(lastRowMarkId); WRITE_UINT_FIELD(lastRowMarkId);
WRITE_BOOL_FIELD(transientPlan); WRITE_BOOL_FIELD(transientPlan);
WRITE_BOOL_FIELD(hasRowSecurity);
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment