]> granicus.if.org Git - postgresql/commitdiff
Add hasRowSecurity to copyfuncs/outfuncs
authorStephen Frost <sfrost@snowman.net>
Thu, 26 Feb 2015 04:32:18 +0000 (23:32 -0500)
committerStephen Frost <sfrost@snowman.net>
Thu, 26 Feb 2015 04:35:04 +0000 (23:35 -0500)
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.

src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c

index 5282a4fec22c26622c0d65f35471d0f95adb6f0b..9fe80080f31884b5153658f988e3a3d80351e134 100644 (file)
@@ -93,6 +93,7 @@ _copyPlannedStmt(const PlannedStmt *from)
        COPY_NODE_FIELD(relationOids);
        COPY_NODE_FIELD(invalItems);
        COPY_SCALAR_FIELD(nParamExec);
+       COPY_SCALAR_FIELD(hasRowSecurity);
 
        return newnode;
 }
index 2f417fee20a16dca7a10ffe274a50204f55c36e6..775f482abda73baad1d98dedf3febc8f765bdf13 100644 (file)
@@ -255,6 +255,7 @@ _outPlannedStmt(StringInfo str, const PlannedStmt *node)
        WRITE_NODE_FIELD(relationOids);
        WRITE_NODE_FIELD(invalItems);
        WRITE_INT_FIELD(nParamExec);
+       WRITE_BOOL_FIELD(hasRowSecurity);
 }
 
 /*
@@ -1719,6 +1720,7 @@ _outPlannerGlobal(StringInfo str, const PlannerGlobal *node)
        WRITE_UINT_FIELD(lastPHId);
        WRITE_UINT_FIELD(lastRowMarkId);
        WRITE_BOOL_FIELD(transientPlan);
+       WRITE_BOOL_FIELD(hasRowSecurity);
 }
 
 static void