pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Add support for restrictive RLS policies 3+ messages / 2 participants [nested] [flat]
* pgsql: Add support for restrictive RLS policies @ 2016-12-05 20:51 Stephen Frost <sfrost@snowman.net> 0 siblings, 1 reply; 3+ messages in thread From: Stephen Frost @ 2016-12-05 20:51 UTC (permalink / raw) To: pgsql-committers Add support for restrictive RLS policies We have had support for restrictive RLS policies since 9.5, but they were only available through extensions which use the appropriate hooks. This adds support into the grammer, catalog, psql and pg_dump for restrictive RLS policies, thus reducing the cases where an extension is necessary. In passing, also move away from using "AND"d and "OR"d in comments. As pointed out by Alvaro, it's not really appropriate to attempt to make verbs out of "AND" and "OR", so reword those comments which attempted to. Reviewed By: Jeevan Chalke, Dean Rasheed Discussion: https://postgr.es/m/20160901063404.GY4028@tamriel.snowman.net Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/093129c9d9fc231649b3cc27b8086443ccbbbc22 Modified Files -------------- doc/src/sgml/catalogs.sgml | 13 ++ doc/src/sgml/ddl.sgml | 58 +++++- doc/src/sgml/ref/alter_policy.sgml | 7 +- doc/src/sgml/ref/create_policy.sgml | 38 ++++ src/backend/catalog/system_views.sql | 6 + src/backend/commands/policy.c | 9 + src/backend/nodes/copyfuncs.c | 1 + src/backend/nodes/equalfuncs.c | 1 + src/backend/parser/gram.y | 43 +++-- src/backend/rewrite/rowsecurity.c | 54 +++--- src/bin/pg_dump/pg_dump.c | 69 +++++--- src/bin/pg_dump/pg_dump.h | 3 +- src/bin/pg_dump/t/002_pg_dump.pl | 33 +++- src/bin/psql/describe.c | 100 ++++++++--- src/bin/psql/tab-complete.c | 29 ++- src/include/catalog/pg_policy.h | 16 +- src/include/nodes/parsenodes.h | 1 + src/include/rewrite/rowsecurity.h | 1 + src/test/regress/expected/rowsecurity.out | 284 ++++++++++++++++++++++++------ src/test/regress/expected/rules.out | 4 + src/test/regress/sql/rowsecurity.sql | 45 ++++- 21 files changed, 665 insertions(+), 150 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] 3+ messages in thread
* Re: [COMMITTERS] pgsql: Add support for restrictive RLS policies @ 2016-12-06 02:20 Andres Freund <andres@anarazel.de> parent: Stephen Frost <sfrost@snowman.net> 0 siblings, 1 reply; 3+ messages in thread From: Andres Freund @ 2016-12-06 02:20 UTC (permalink / raw) To: Stephen Frost <sfrost@snowman.net>; pgsql-hackers@postgresql.org; +Cc: pgsql-committers On 2016-12-05 20:51:02 +0000, Stephen Frost wrote: > Add support for restrictive RLS policies > Modified Files > -------------- > src/backend/nodes/copyfuncs.c | 1 + > src/backend/nodes/equalfuncs.c | 1 + > src/backend/parser/gram.y | 43 +++-- > src/include/nodes/parsenodes.h | 1 + This is missing a catversion bump. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [COMMITTERS] pgsql: Add support for restrictive RLS policies @ 2016-12-06 15:13 Stephen Frost <sfrost@snowman.net> parent: Andres Freund <andres@anarazel.de> 0 siblings, 0 replies; 3+ messages in thread From: Stephen Frost @ 2016-12-06 15:13 UTC (permalink / raw) To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-hackers@postgresql.org; pgsql-committers Andres, * Andres Freund (andres@anarazel.de) wrote: > On 2016-12-05 20:51:02 +0000, Stephen Frost wrote: > > Add support for restrictive RLS policies > This is missing a catversion bump. Ewps, apologies and thanks for pointing it out. Fixed. Stephen Attachments: signature.asc (application/pgp-signature, 818B) download ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-12-06 15:13 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-12-05 20:51 pgsql: Add support for restrictive RLS policies Stephen Frost <sfrost@snowman.net> 2016-12-06 02:20 ` Andres Freund <andres@anarazel.de> 2016-12-06 15:13 ` Stephen Frost <sfrost@snowman.net>
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