From: Joe Conway <mail@joeconway.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF
Date: Fri, 24 Jul 2015 19:57:08 +0000
Message-ID: <E1ZIj5g-00067z-Tn@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: mail@joeconway.com
Subject: Re: pgsql: Make RLS work with UPDATE ... WHERE CURRENT OF
In-Reply-To: <E1ZIj5g-00067z-Tn@gemulon.postgresql.org>
References: <E1ZIj5g-00067z-Tn@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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