pg_rewind vs superuser - Mailing list pgsql-hackers

From Magnus Hagander
Subject pg_rewind vs superuser
Date
Msg-id CABUevEz5bpvbwVsYCaSMV80CBZ5-82nkMzbb+Bu=h1m=rLdn=g@mail.gmail.com
Whole thread Raw
Responses Re: pg_rewind vs superuser
List pgsql-hackers
As pointed out by Michael Banck as a comment on my blogpost, the pg_rewind documentation says it requires superuser permissions on the remote server.

Is that really so, though? I haven't tested it, but from a quick look at the code it looks like it needs pg_ls_dir(), pg_stat_file() and pg_read_binary_file(), all, of which are independently grantable.

Or am I missing something?

--

pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Ordered Partitioned Table Scans
Next
From: Magnus Hagander
Date:
Subject: Re: Checksum errors in pg_stat_database