> Presumably the user has a reason for adding the file read-only to the
> data directory, and we shouldn't lightly ignore that.
>
> Michael's advice is reasonable. This seems like a case of:

I agree. Attached is a short patch to handle the case. The patch was
tested in my dev environment.

Attachment: v1-0001-Fix-pg_rewind-failure-due-to-read-only-file-open-.patch
Description: Binary data

Reply via email to