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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy