Skip to content

Commit 62a4a1a

Browse files
committed
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.
1 parent 6f9bd50 commit 62a4a1a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/backend/nodes/copyfuncs.c

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ _copyPlannedStmt(const PlannedStmt *from)
9393
COPY_NODE_FIELD(relationOids);
9494
COPY_NODE_FIELD(invalItems);
9595
COPY_SCALAR_FIELD(nParamExec);
96+
COPY_SCALAR_FIELD(hasRowSecurity);
9697

9798
return newnode;
9899
}

src/backend/nodes/outfuncs.c

+2
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
255255
WRITE_NODE_FIELD(relationOids);
256256
WRITE_NODE_FIELD(invalItems);
257257
WRITE_INT_FIELD(nParamExec);
258+
WRITE_BOOL_FIELD(hasRowSecurity);
258259
}
259260

260261
/*
@@ -1719,6 +1720,7 @@ _outPlannerGlobal(StringInfo str, const PlannerGlobal *node)
17191720
WRITE_UINT_FIELD(lastPHId);
17201721
WRITE_UINT_FIELD(lastRowMarkId);
17211722
WRITE_BOOL_FIELD(transientPlan);
1723+
WRITE_BOOL_FIELD(hasRowSecurity);
17221724
}
17231725

17241726
static void

0 commit comments

Comments
 (0)