Re: Add support for restrictive RLS policies
Stephen Frost <sfrost@snowman.net>
From: Stephen Frost <sfrost@snowman.net>
To: Robert Haas <robertmhaas@gmail.com>, Thom Brown <thom@linux.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2016-09-08T18:35:44Z
Lists: pgsql-hackers
Attachments
- restrict_rls_v2.patch (text/x-diff) patch v2
Greetings! * Stephen Frost (sfrost@snowman.net) wrote: > Based on Robert's suggestion and using Thom's verbiage, I've tested this > out: > > CREATE POLICY pol ON tab AS [PERMISSIVE|RESTRICTIVE] ... > > and it appears to work fine with the grammar, etc. > > Unless there's other thoughts on this, I'll update the patch to reflect > this grammar in a couple days. Updated patch attached which uses the above approach, includes some initial documentation, and has fixes for the tab completion, I'm planning to add more documentation. Otherwise, testing and code review would certainly be appreciated. Thanks! Stpehen
Commits
-
Add support for restrictive RLS policies
- 093129c9d9fc 10.0 landed
-
Include <sys/select.h> where needed
- 51c3e9fade76 10.0 cited
-
Apply table and domain CHECK constraints in name order.
- e5f455f59fed 9.5.0 cited