Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62a4a1a

Browse files
committed
Add hasRowSecurity to copyfuncs/outfuncs
The RLS patch added a hasRowSecurity field to PlannerGlobal andPlannedStmt but didn't update nodes/copyfuncs.c and nodes/outfuncs.c toreflect those additional fields.Correct that by adding entries to the appropriate functions for thosefields.Pointed out by Robert.
1 parent6f9bd50 commit62a4a1a

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
returnnewnode;
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
staticvoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp