{"Entry":{"collection":"role","key":"pg_read_all_data","name":"pg_read_all_data","aliases":[],"metadata":{"aliases":[],"category":"Data access","content_hash":"4c1c6e5a63d184de658c43acd28b7a1577dd488ef82b99495a47b5f20c6ffe9a","derived_content_hash":"405c8f16cdafec0ec5b70ce3dbb3e89cb867a52f4ad8e314601f5259620349f3","imported_at":"2026-09-27T17:57:59.053525+08:00","name":"pg_read_all_data","name_zh":"pg_read_all_data","repair_provenance":{"original_source_revision":"","receipt_sha256":"3acecb5fa1bf2ba044cb174a55e18027762f069635805a3822dd5937385ef816","repair":"wiki-repair-20261023"},"slug":"pg_read_all_data","source_rev":"wiki-repair-20261023:40f870f3d42ae54786c307f8a18f229106c200f628ee6dc95e22cdb80ad30b29","summary":"pg_read_all_data allows reading all data (tables, views, sequences, large objects), 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."}},"Definition":{"Collection":"role","Key":"pg_read_all_data","SourceDatabase":"center","Version":"18","SourceTable":"predefined_role","SourceKey":"pg_read_all_data","SourceRevision":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75","Facts":{"description":["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."],"description_zh":"pg_read_all_data 允许读取所有数据（表、视图、序列），其效果就像对这些对象拥有 SELECT 权限并对所有模式拥有 USAGE 权限一样。该角色不会绕过行级安全（RLS）策略。如果正在使用 RLS，管理员可能希望对被授予此角色的角色设置 BYPASSRLS。","description_zh_html":"\u003cp\u003e\n\u003ccode class=\"literal\"\u003epg_read_all_data\u003c/code\u003e 允许读取所有数据（表、视图、序列），其效果就像对这些对象拥有 \u003ccode class=\"command\"\u003eSELECT\u003c/code\u003e 权限并对所有模式拥有 \u003ccode class=\"literal\"\u003eUSAGE\u003c/code\u003e 权限一样。该角色不会绕过行级安全（RLS）策略。如果正在使用 RLS，管理员可能希望对被授予此角色的角色设置 \u003ccode class=\"literal\"\u003eBYPASSRLS\u003c/code\u003e。\n      \u003c/p\u003e","facts":[{"label":"Name","value":"pg_read_all_data"},{"label":"Manual terminology","value":"Predefined roles"}],"related":[],"release":{"channel":"stable","label":"18.6","major":"18","ref":"PostgreSQL 18.6 Documentation","revision":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75"},"sections":[],"sources":[{"label":"PostgreSQL 18.6 Documentation","sha256":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75","url":"/docs/18/predefined-roles.html#PREDEFINED-ROLE-PG-READ-ALL-DATA"},{"label":"PostgreSQL 18 online manual","url":"https://www.postgresql.org/docs/18/predefined-roles.html#PREDEFINED-ROLE-PG-READ-ALL-DATA"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/predefined-roles.html","sha256":"99e1fbd83b1da2cf9da5823238b31d78c953c6118ecc61939808d2bf32f9b56d"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-pgdoc"},"ManualEvidence":{"release":{"channel":"stable","label":"18.6","major":"18","ref":"PostgreSQL 18.6 Documentation","revision":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75"},"sources":[{"label":"PostgreSQL 18.6 Documentation","sha256":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75","url":"/docs/18/predefined-roles.html#PREDEFINED-ROLE-PG-READ-ALL-DATA"},{"label":"PostgreSQL 18 online manual","url":"https://www.postgresql.org/docs/18/predefined-roles.html#PREDEFINED-ROLE-PG-READ-ALL-DATA"}]},"MeasuredEvidence":{}},"Text":{"Collection":"role","Key":"pg_read_all_data","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_read_all_data","Summary":"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.","BodyHTML":"\u003cp\u003epg_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.\u003c/p\u003e","SourceRevision":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75","ContentHash":"a243b149e77817f64c29168ff9f752ca47c9d136a3a4dd2e7f6ce587921cd008","Payload":{"description":["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."],"related":[],"sections":[]}},"RequestedLocale":"en","Fallback":false,"Versions":["14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
