]> granicus.if.org Git - postgresql/commit
Make RLS work with UPDATE ... WHERE CURRENT OF
authorJoe Conway <mail@joeconway.com>
Fri, 24 Jul 2015 19:56:25 +0000 (12:56 -0700)
committerJoe Conway <mail@joeconway.com>
Fri, 24 Jul 2015 19:56:25 +0000 (12:56 -0700)
commit7d4240d6cd91d83d263a45501cc2f44fb1d0a537
tree215aa014a5b3a7cc2f0e670b2ba22ef0d2266204
parent016f28ad3dbf3bec14319cf2a49925b0063251aa
Make RLS work with UPDATE ... WHERE CURRENT OF

UPDATE ... WHERE CURRENT OF would not work in conjunction with
RLS. Arrange to allow the CURRENT OF expression to be pushed down.
Issue noted by Peter Geoghegan. Patch by Dean Rasheed. Back patch
to 9.5 where RLS was introduced.
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/util/clauses.c
src/test/regress/expected/rowsecurity.out
src/test/regress/sql/rowsecurity.sql