Server-side base backup: why superuser, not pg_write_server_files?

From: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Server-side base backup: why superuser, not pg_write_server_files?
Date: 2022-01-28 10:58:09
Message-ID: 87bkzw160u.fsf@wibble.ilmari.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Hackers,

I just noticed that the new server-side base backup feature requires
superuser privileges (which is only documented in the pg_basebackup
manual, not in the streaming replication protocol specification).

Isn't this the kind of thing the pg_write_server_files role was created
for, so that it can be delegated to a non-superuser?

- ilmari

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Japin Li 2022-01-28 11:01:20 Re: BeginCopyTo - remove switching to old memory context in between COPY TO command processing
Previous Message tushar 2022-01-28 10:45:41 Re: refactoring basebackup.c