diff options
author | Stephen Frost <sfrost@snowman.net> | 2015-07-27 16:48:26 -0400 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2015-07-27 16:49:07 -0400 |
commit | 5d179a28fb4c819f3812c40fa7e626b1d3081982 (patch) | |
tree | 6c7bbceaab2ddce591a2651c61b5ce0dc0f0b65f /src/backend/executor/nodeLimit.c | |
parent | cb0bb53204d84cecf51022313fe47d625de8f01e (diff) |
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/nodeLimit.c')
0 files changed, 0 insertions, 0 deletions