]> granicus.if.org Git - postgresql/commit
Default monitoring roles
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 30 Mar 2017 18:18:53 +0000 (14:18 -0400)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 30 Mar 2017 18:18:53 +0000 (14:18 -0400)
commit25fff40798fc4ac11a241bfd9ab0c45c085e2212
tree3c2e3eb741f814bba8eaa593d17811b86b8d2a00
parente984ef5861df4bc9733b36271d05763e82de7c04
Default monitoring roles

Three nologin roles with non-overlapping privs are created by default
* pg_read_all_settings - read all GUCs.
* pg_read_all_stats - pg_stat_*, pg_database_size(), pg_tablespace_size()
* pg_stat_scan_tables - may lock/scan tables

Top level role - pg_monitor includes all of the above by default, plus others

Author: Dave Page
Reviewed-by: Stephen Frost, Robert Haas, Peter Eisentraut, Simon Riggs
30 files changed:
contrib/pg_buffercache/Makefile
contrib/pg_buffercache/pg_buffercache--1.2--1.3.sql [new file with mode: 0644]
contrib/pg_buffercache/pg_buffercache.control
contrib/pg_freespacemap/Makefile
contrib/pg_freespacemap/pg_freespacemap--1.1--1.2.sql [new file with mode: 0644]
contrib/pg_freespacemap/pg_freespacemap.control
contrib/pg_stat_statements/Makefile
contrib/pg_stat_statements/pg_stat_statements--1.4--1.5.sql [new file with mode: 0644]
contrib/pg_stat_statements/pg_stat_statements.c
contrib/pg_stat_statements/pg_stat_statements.control
contrib/pg_visibility/Makefile
contrib/pg_visibility/pg_visibility--1.1--1.2.sql [new file with mode: 0644]
contrib/pg_visibility/pg_visibility.control
contrib/pgrowlocks/pgrowlocks.c
contrib/pgstattuple/pgstattuple--1.4--1.5.sql
doc/src/sgml/catalogs.sgml
doc/src/sgml/func.sgml
doc/src/sgml/pgbuffercache.sgml
doc/src/sgml/pgfreespacemap.sgml
doc/src/sgml/pgrowlocks.sgml
doc/src/sgml/pgstatstatements.sgml
doc/src/sgml/pgstattuple.sgml
doc/src/sgml/pgvisibility.sgml
doc/src/sgml/user-manag.sgml
src/backend/catalog/system_views.sql
src/backend/replication/walreceiver.c
src/backend/utils/adt/dbsize.c
src/backend/utils/adt/pgstatfuncs.c
src/backend/utils/misc/guc.c
src/include/catalog/pg_authid.h