Make BYPASSRLS behave like superuser RLS bypass.

Noah Misch <noah@leadboat.com>

Commit: 01ba7894f3f72ea57d1cfdc4f40f6231bc6cd9cd
Author: Noah Misch <noah@leadboat.com>
Date: 2015-10-04T00:20:50Z
Releases: 9.5.0
Make BYPASSRLS behave like superuser RLS bypass.

Specifically, make its effect independent from the row_security GUC, and
make it affect permission checks pertinent to views the BYPASSRLS role
owns.  The row_security GUC thereby ceases to change successful-query
behavior; it can only make a query fail with an error.  Back-patch to
9.5, where BYPASSRLS was introduced.

Files