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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Paul Guo <paulguo(at)gmail(dot)com>
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 13:01:11
Message-ID: a2efa130-14c8-4832-9f22-91bd6d5f6b34@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 5/20/21 6:17 AM, Paul Guo wrote:
>> 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.

You seem to have missed my point completely. The answer to this problem
IMNSHO is "Don't put a read-only file in the data directory".

cheers

andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2021-05-20 13:16:50 Re: Installation of regress.so?
Previous Message Amit Langote 2021-05-20 12:58:47 Re: Forget close an open relation in ReorderBufferProcessTXN()