-
- Downloads
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.
Showing
- doc/src/sgml/catalogs.sgml 3 additions, 3 deletionsdoc/src/sgml/catalogs.sgml
- doc/src/sgml/config.sgml 9 additions, 16 deletionsdoc/src/sgml/config.sgml
- doc/src/sgml/ddl.sgml 6 additions, 13 deletionsdoc/src/sgml/ddl.sgml
- doc/src/sgml/ref/create_role.sgml 3 additions, 6 deletionsdoc/src/sgml/ref/create_role.sgml
- src/backend/utils/misc/rls.c 12 additions, 27 deletionssrc/backend/utils/misc/rls.c
- src/include/catalog/pg_authid.h 1 addition, 1 deletionsrc/include/catalog/pg_authid.h
- src/test/regress/expected/rowsecurity.out 8 additions, 6 deletionssrc/test/regress/expected/rowsecurity.out
- src/test/regress/sql/rowsecurity.sql 2 additions, 4 deletionssrc/test/regress/sql/rowsecurity.sql
Loading
Please register or sign in to comment