{"Entry":{"collection":"role","key":"pg_read_server_files","name":"pg_read_server_files","aliases":[],"metadata":{"aliases":[],"category":"Server files and programs","content_hash":"166c5be61f71d590283caf0619819126895da21722bd3b0550507361601b40ca","imported_at":"2026-09-27T17:57:59.058418+08:00","name":"pg_read_server_files","name_zh":"pg_read_server_files","slug":"pg_read_server_files","summary":"pg_read_server_files allows reading files from any location the database can access on the server using COPY and other file-access functions."}},"Definition":{"Collection":"role","Key":"pg_read_server_files","SourceDatabase":"center","Version":"18","SourceTable":"predefined_role","SourceKey":"pg_read_server_files","SourceRevision":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75","Facts":{"description":["pg_read_server_files allows reading files from any location the database can access on the server using COPY and other file-access functions."],"facts":[{"label":"Name","value":"pg_read_server_files"},{"label":"Manual terminology","value":"Predefined roles"}],"related":[],"release":{"channel":"stable","label":"18.6","major":"18","ref":"PostgreSQL 18.6 Documentation","revision":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75"},"sections":[{"paragraphs":["These roles are intended to allow administrators to have trusted, but non-superuser, roles which are able to access files and run programs on the database server as the user the database runs as. They bypass all database-level permission checks when accessing files directly and they could be used to gain superuser-level access. Therefore, great care should be taken when granting these roles to users."],"title":"Privileges and scope"}],"sources":[{"label":"PostgreSQL 18.6 Documentation","sha256":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75","url":"/docs/18/predefined-roles.html#PREDEFINED-ROLE-PG-READ-SERVER-FILES"},{"label":"PostgreSQL 18 online manual","url":"https://www.postgresql.org/docs/18/predefined-roles.html#PREDEFINED-ROLE-PG-READ-SERVER-FILES"}]},"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-SERVER-FILES"},{"label":"PostgreSQL 18 online manual","url":"https://www.postgresql.org/docs/18/predefined-roles.html#PREDEFINED-ROLE-PG-READ-SERVER-FILES"}]},"MeasuredEvidence":{}},"Text":{"Collection":"role","Key":"pg_read_server_files","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_read_server_files","Summary":"pg_read_server_files allows reading files from any location the database can access on the server using COPY and other file-access functions.","BodyHTML":"\u003cp\u003epg_read_server_files allows reading files from any location the database can access on the server using COPY and other file-access functions.\u003c/p\u003e","SourceRevision":"b7ebd726e6017f55081b4034b96d6a3289ae7937a26adaf72e58b9a08e009c75","ContentHash":"2b696e41520f99fa24f7fb1e01e0a4e696878c2f4dc7973cb8dec814f81fb3e5","Payload":{"description":["pg_read_server_files allows reading files from any location the database can access on the server using COPY and other file-access functions."],"related":[],"sections":[{"paragraphs":["These roles are intended to allow administrators to have trusted, but non-superuser, roles which are able to access files and run programs on the database server as the user the database runs as. They bypass all database-level permission checks when accessing files directly and they could be used to gain superuser-level access. Therefore, great care should be taken when granting these roles to users."],"title":"Privileges and scope"}]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["11","12","13","14","15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
