aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2015-07-27 16:48:26 -0400
committerStephen Frost <sfrost@snowman.net>2015-07-27 16:48:26 -0400
commit3d5cb31c9a17bad8bbc587c09404b2aa1e6c3aac (patch)
tree9917891149031640e7d1cb51c96e2a9b6bed9a9d /src/backend/executor/nodeFunctionscan.c
parent4c8f8ffaca42bb5678a0858ce56f9a384c21c583 (diff)
downloadpostgresql-3d5cb31c9a17bad8bbc587c09404b2aa1e6c3aac.tar.gz
postgresql-3d5cb31c9a17bad8bbc587c09404b2aa1e6c3aac.zip
Improve RLS handling in copy.c
To avoid a race condition where the relation being COPY'd could be changed into a view or otherwise modified, keep the original lock on the relation. Further, fully qualify the relation when building the query up. Also remove the poorly thought-out Assert() and check the entire relationOids list as, post-RLS, there can certainly be multiple relations involved and the planner does not guarantee their ordering. Per discussion with Noah and Andres. Back-patch to 9.5 where RLS was introduced.
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions