Re: pg_rewind fails if there is a read only file.

From: Paul Guo <paulguo(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Re: pg_rewind fails if there is a read only file.
Date: 2021-05-20 10:17:49
Message-ID: CABQrizf-Z0cOt+_w+FnQGvCnmu4y5GC4Gu5G9CzHcyRYJ2FeVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 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 Content-Type Size
v1-0001-Fix-pg_rewind-failure-due-to-read-only-file-open-.patch application/octet-stream 1.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2021-05-20 10:32:28 Re: Skip partition tuple routing with constant partition key
Previous Message Amit Kapila 2021-05-20 10:09:47 Re: "Multiple table synchronizations are processed serially" still happens