]> granicus.if.org Git - postgresql/commit
Make RLS work with UPDATE ... WHERE CURRENT OF
authorJoe Conway <mail@joeconway.com>
Fri, 24 Jul 2015 19:55:30 +0000 (12:55 -0700)
committerJoe Conway <mail@joeconway.com>
Fri, 24 Jul 2015 19:55:30 +0000 (12:55 -0700)
commitb26e3d660df51a088d14c3c2cfce5990c13c1195
tree8bea46a185f0ce157f051445ec9fb57e7ea74d6d
parentd9a356ff2e6bb7ed5fb1145af49fa3e51e68a98a
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