| From: | Joe Conway <mail(at)joeconway(dot)com> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Apply RLS policies to partitioned tables. |
| Date: | 2017-06-11 15:52:06 |
| Message-ID: | E1dK59q-0005XI-2U@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Apply RLS policies to partitioned tables.
The new partitioned table capability added a new relkind, namely
RELKIND_PARTITIONED_TABLE. Update fireRIRrules() to apply RLS
policies on RELKIND_PARTITIONED_TABLE as it does RELKIND_RELATION.
In addition, add RLS regression test coverage for partitioned tables.
Issue raised by Fakhroutdinov Evgenievich and patch by Mike Palmiotto.
Regression test editorializing by me.
Discussion: https://postgr.es/m/flat/20170601065959(dot)1486(dot)69906(at)wrigleys(dot)postgresql(dot)org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4f7a95be2c112bdc8da5f7e46cbb743b8ba4cc21
Modified Files
--------------
src/backend/rewrite/rewriteHandler.c | 3 +-
src/test/regress/expected/rowsecurity.out | 428 ++++++++++++++++++++++++++++++
src/test/regress/sql/rowsecurity.sql | 142 ++++++++++
3 files changed, 572 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Piotr Stefaniak | 2017-06-11 21:14:36 | Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.) |
| Previous Message | Andrew Dunstan | 2017-06-10 14:24:41 | pgsql: Take PROVE_FLAGS from the command line but not the environment |