pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF - Mailing list pgsql-committers

From Joe Conway
Subject pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF
Date
Msg-id E1ZIj5g-00067z-Tn@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b26e3d660df51a088d14c3c2cfce5990c13c1195

Modified Files
--------------
src/backend/optimizer/path/allpaths.c     |   40 +++++++++++
src/backend/optimizer/util/clauses.c      |   10 +++
src/test/regress/expected/rowsecurity.out |  107 +++++++++++++++++++++++++++++
src/test/regress/sql/rowsecurity.sql      |   49 +++++++++++++
4 files changed, 206 insertions(+)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Fix treatment of nulls in jsonb_agg and jsonb_object_agg
Next
From: Joe Conway
Date:
Subject: pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF