Re: pg_rewind fails if there is a read only file.
От
Andrew Dunstan
Тема
Re: pg_rewind fails if there is a read only file.
Дата
Msg-id
a2efa130-14c8-4832-9f22-91bd6d5f6b34@dunslane.net
Ответ на
Список
Дерево обсуждения
pg_rewind fails if there is a read only file. Paul Guo <paulguo@gmail.com>
Re: pg_rewind fails if there is a read only file. Andrew Dunstan <andrew@dunslane.net>
Re: pg_rewind fails if there is a read only file. Paul Guo <paulguo@gmail.com>
Re: pg_rewind fails if there is a read only file. Andrew Dunstan <andrew@dunslane.net>
Re: pg_rewind fails if there is a read only file. Paul Guo <paulguo@gmail.com>
Re: pg_rewind fails if there is a read only file. Laurenz Albe <laurenz.albe@cybertec.at>
Re: pg_rewind fails if there is a read only file. Andrew Dunstan <andrew@dunslane.net>
Re: pg_rewind fails if there is a read only file. Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_rewind fails if there is a read only file. Andrew Dunstan <andrew@dunslane.net>
Re: pg_rewind fails if there is a read only file. Michael Paquier <michael@paquier.xyz>
Re: pg_rewind fails if there is a read only file. Laurenz Albe <laurenz.albe@cybertec.at>
Re: pg_rewind fails if there is a read only file. Andrew Dunstan <andrew@dunslane.net>
Re: pg_rewind fails if there is a read only file. Paul Guo <paulguo@gmail.com>
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
В списке pgsql-hackers по дате отправления
От: Amit Langote
Дата: