]> granicus.if.org Git - postgresql/commit
Apply RLS policies to partitioned tables.
authorJoe Conway <mail@joeconway.com>
Sun, 11 Jun 2017 15:51:18 +0000 (08:51 -0700)
committerJoe Conway <mail@joeconway.com>
Sun, 11 Jun 2017 15:51:18 +0000 (08:51 -0700)
commit4f7a95be2c112bdc8da5f7e46cbb743b8ba4cc21
tree08cd6ef86fc2e31b8c39b459ad001c39d717c659
parent93b7d9731f184e764c642266ecd74be24db73a6e
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.1486.69906@wrigleys.postgresql.org
src/backend/rewrite/rewriteHandler.c
src/test/regress/expected/rowsecurity.out
src/test/regress/sql/rowsecurity.sql