pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Create a pg_shdepend entry for each role in TO clause of policie
2+ messages / 1 participants
[nested] [flat]

* pgsql: Create a pg_shdepend entry for each role in TO clause of policie
@ 2015-07-28 23:03 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Conway @ 2015-07-28 23:03 UTC (permalink / raw)
  To: pgsql-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


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

* pgsql: Create a pg_shdepend entry for each role in TO clause of policie
@ 2015-07-28 23:03 Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Conway @ 2015-07-28 23:03 UTC (permalink / raw)
  To: pgsql-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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/992c9d345f6607c5b2cab2787f7cf72fba96673d

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


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


end of thread, other threads:[~2015-07-28 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-07-28 23:03 pgsql: Create a pg_shdepend entry for each role in TO clause of policie Joe Conway <mail@joeconway.com>
2015-07-28 23:03 pgsql: Create a pg_shdepend entry for each role in TO clause of policie 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