postgresql/src/backend/access
Dean Rasheed 7faa5fc84b Add support for security invoker views.
A security invoker view checks permissions for accessing its
underlying base relations using the privileges of the user of the
view, rather than the privileges of the view owner. Additionally, if
any of the base relations are tables with RLS enabled, the policies of
the user of the view are applied, rather than those of the view owner.

This allows views to be defined without giving away additional
privileges on the underlying base relations, and matches a similar
feature available in other database systems.

It also allows views to operate more naturally with RLS, without
affecting the assignments of policies to users.

Christoph Heiss, with some additional hacking by me. Reviewed by
Laurenz Albe and Wolfgang Walther.

Discussion: https://postgr.es/m/b66dd6d6-ad3e-c6f2-8b90-47be773da240%40cybertec.at
2022-03-22 10:28:10 +00:00
..
brin Remove workarounds for avoiding [U]INT64_FORMAT in translatable strings. 2022-03-21 11:11:55 -04:00
common Add support for security invoker views. 2022-03-22 10:28:10 +00:00
gin Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
gist Fix data loss on crash after sorted GiST index build. 2022-02-24 16:15:12 +02:00
hash Remove xloginsert.h from xlog.h 2022-01-30 12:25:24 -03:00
heap Fix collection of typos in the code and the documentation 2022-03-15 11:29:35 +09:00
index Update copyright for 2022 2022-01-07 19:04:57 -05:00
nbtree Remove MaxBackends variable in favor of GetMaxBackends() function. 2022-02-08 15:53:19 -05:00
rmgrdesc Update copyright for 2022 2022-01-07 19:04:57 -05:00
spgist Update copyright for 2022 2022-01-07 19:04:57 -05:00
table Update copyright for 2022 2022-01-07 19:04:57 -05:00
tablesample Update copyright for 2022 2022-01-07 19:04:57 -05:00
transam Add circular WAL decoding buffer, take II. 2022-03-18 18:45:47 +13:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00