From: Joe Conway <mail@joeconway.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Create a pg_shdepend entry for each role in TO clause of policie
Date: Tue, 28 Jul 2015 23:03:12 +0000
Message-ID: <E1ZKDtw-0008G6-9Z@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Create a pg_shdepend entry for each role in TO clause of policies.
CreatePolicy() and AlterPolicy() omit to create a pg_shdepend entry for
each role in the TO clause. Fix this by creating a new shared dependency
type called SHARED_DEPENDENCY_POLICY and assigning it to each role.
Reported by Noah Misch. Patch by me, reviewed by Alvaro Herrera.
Back-patch to 9.5 where RLS was introduced.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/f781a0f1d88411978c9df5f05cbb4f46aabe3d24
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 10 ++++
src/backend/catalog/pg_shdepend.c | 2 +
src/backend/commands/policy.c | 87 ++++++++++++++++++++---------
src/include/catalog/dependency.h | 5 ++
src/test/regress/expected/rowsecurity.out | 55 ++++++++++++++++++
src/test/regress/sql/rowsecurity.sql | 44 +++++++++++++++
6 files changed, 177 insertions(+), 26 deletions(-)
--
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: Create a pg_shdepend entry for each role in TO clause of policie
In-Reply-To: <E1ZKDtw-0008G6-9Z@gemulon.postgresql.org>
References: <E1ZKDtw-0008G6-9Z@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