Adjust server-side backup to depend on pg_write_server_files.
authorRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 17:26:33 +0000 (12:26 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 17:31:40 +0000 (12:31 -0500)
commit7f6772317b4a4f9d30c25d1853571fca6d834f0c
tree24ad2d60e545cb57f5351d89630899757bf473ec
parent51891d5a95605c4e98324731b386345d89c5a71e
Adjust server-side backup to depend on pg_write_server_files.

I had made it depend on superuser, but that seems clearly inferior.
Also document the permissions requirement in the straming replication
protocol section of the documentation, rather than only in the
section having to do with pg_basebackup.

Idea and patch from Dagfinn Ilmari Mannsåker.

Discussion: http://postgr.es/m/87bkzw160u.fsf@wibble.ilmari.org
doc/src/sgml/protocol.sgml
doc/src/sgml/ref/pg_basebackup.sgml
src/backend/replication/basebackup_server.c