pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF
2+ messages / 1 participants
[nested] [flat]

* pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF
@ 2015-07-24 19:57  Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Conway @ 2015-07-24 19:57 UTC (permalink / raw)
  To: 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(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF
@ 2015-07-24 19:57  Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Conway @ 2015-07-24 19:57 UTC (permalink / raw)
  To: 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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7d4240d6cd91d83d263a45501cc2f44fb1d0a537

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(+)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-07-24 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24 19:57 pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF Joe Conway <mail@joeconway.com>
2015-07-24 19:57 pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF Joe Conway <mail@joeconway.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox