↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 预定义角色

预定义角色

版本覆盖矩阵

PostgreSQL 版本定义:18

当前阅读 PG 18·选择有来源记录的版本

16 / 16 条已记录定义实心方块表示该版本有定义;选择方块可阅读对应版本。
  • pg_checkpointMaintenance15 – 20

    pg_checkpoint allows executing the CHECKPOINT command.

    此定义以英文显示

    1011121314151617181920
  • pg_create_subscriptionAdministration16 – 20

    pg_create_subscription allows users with CREATE permission on the database to issue CREATE SUBSCRIPTION .

    此定义以英文显示

    1011121314151617181920
  • pg_database_ownerAdministration14 – 20

    pg_database_owner always has exactly one implicit member: the current database owner. It cannot be granted membership in any role, and no role can be granted membership in pg_database_owner . However, like any other role, it can own objects and receive grants of access privileges. Consequently, once pg_database_owner has rights within a template database, each owner of a database instantiated from that template will possess those rights. Initially, this role owns the public schema, so each database owner governs local use of that schema.

    此定义以英文显示

  • pg_execute_server_programServer files and programs11 – 20

    pg_execute_server_program allows executing programs on the database server as the user the database runs as using COPY and other functions which allow executing a server-side program.

    此定义以英文显示

  • pg_maintainMaintenance17 – 20

    pg_maintain allows executing VACUUM , ANALYZE , CLUSTER , REFRESH MATERIALIZED VIEW , REINDEX , and LOCK TABLE on all relations, as if having MAINTAIN rights on those objects.

    此定义以英文显示

    1011121314151617181920
  • pg_monitorMonitoring and statistics10 – 20

    pg_monitor allows reading/executing various monitoring views and functions. This role is a member of pg_read_all_settings , pg_read_all_stats and pg_stat_scan_tables .

    此定义以英文显示

  • pg_read_all_dataData access14 – 20

    pg_read_all_data allows reading all data (tables, views, sequences), as if having SELECT rights on those objects and USAGE rights on all schemas. This role does not bypass row-level security (RLS) policies. If RLS is being used, an administrator may wish to set BYPASSRLS on roles which this role is granted to.

    此定义以英文显示

  • pg_read_all_settingsMonitoring and statistics10 – 20

    pg_read_all_settings allows reading all configuration variables, even those normally visible only to superusers.

    此定义以英文显示

  • pg_read_all_statsMonitoring and statistics10 – 20

    pg_read_all_stats allows reading all pg_stat_* views and use various statistics related extensions, even those normally visible only to superusers.

    此定义以英文显示

  • pg_read_server_filesServer files and programs11 – 20

    pg_read_server_files allows reading files from any location the database can access on the server using COPY and other file-access functions.

    此定义以英文显示

  • pg_signal_autovacuum_workerProcesses and connections18 – 20

    pg_signal_autovacuum_worker allows signaling autovacuum workers to cancel the current table's vacuum or terminate its session. See Section 9.28.2 .

    此定义以英文显示

    1011121314151617181920
  • pg_signal_backendProcesses and connections10 – 20

    pg_signal_backend allows signaling another backend to cancel a query or terminate its session. Note that this role does not permit signaling backends owned by a superuser. See Section 9.28.2 .

    此定义以英文显示

  • pg_stat_scan_tablesMonitoring and statistics10 – 20

    pg_stat_scan_tables allows executing monitoring functions that may take ACCESS SHARE locks on tables, potentially for a long time (e.g., pgrowlocks(text) in the pgrowlocks extension).

    此定义以英文显示

  • pg_use_reserved_connectionsProcesses and connections16 – 20

    pg_use_reserved_connections allows use of connection slots reserved via reserved_connections .

    此定义以英文显示

    1011121314151617181920
  • pg_write_all_dataData access14 – 20

    pg_write_all_data allows writing all data (tables, views, sequences), as if having INSERT , UPDATE , and DELETE rights on those objects and USAGE rights on all schemas. This role does not bypass row-level security (RLS) policies. If RLS is being used, an administrator may wish to set BYPASSRLS on roles which this role is granted to.

    此定义以英文显示

  • pg_write_server_filesServer files and programs11 – 20

    pg_write_server_files allows writing to files in any location the database can access on the server using COPY and other file-access functions.

    此定义以英文显示