回复:pg_rewind fails with in-place tablespace

2023-07-31 Thread Rui Zhao
the final issue. Thank you for your understanding and assistance. Best regard, Rui Zhao -- 发件人:Michael Paquier 发送时间:2023年7月31日(星期一) 06:49 收件人:赵锐(惜元) 抄 送:pgsql-hackers ; Thomas Munro 主 题:Re: pg_rewind fails with in-place tablespace O

Re: 回复:pg_rewind fails with in-place tablespace

2023-07-30 Thread Michael Paquier
On Mon, Jul 31, 2023 at 10:07:44AM +0800, Rui Zhao wrote: > However, I would like to bring your attention to another issue: > pg_upgrade fails with in-place tablespace. Another issue is still > waiting for approved. I have tested all the tools in src/bin with > in-place tablespace, and I believe th

Re: pg_rewind fails with in-place tablespace

2023-07-30 Thread Michael Paquier
On Fri, Jul 28, 2023 at 04:54:56PM +0900, Michael Paquier wrote: > I am finishing with the attached. Thoughts? Applied this one as bf22792 on HEAD, without a backpatch as in-place tablespaces are around for developers. If there are opinions in favor of a backpatch, feel free of course. -- Michae

Re: pg_rewind fails with in-place tablespace

2023-07-28 Thread Michael Paquier
On Tue, Jul 25, 2023 at 04:36:42PM +0900, Michael Paquier wrote: > On Wed, Jul 19, 2023 at 09:31:35PM +0800, 赵锐(惜元) wrote: >> To help reproduce the failure, I have attached a tap test. And I am >> pleased to say that I have also identified a solution for this >> problem, which I have included in

Re: pg_rewind fails with in-place tablespace

2023-07-25 Thread Michael Paquier
On Wed, Jul 19, 2023 at 09:31:35PM +0800, 赵锐(惜元) wrote: > Recently I encountered an issue: pg_rewind fails when dealing with > in-place tablespace. The problem seems to be that pg_rewind is > treating in-place tablespace as symbolic link, while in fact it > should be treated as directory. > H

pg_rewind fails with in-place tablespace

2023-07-19 Thread 赵锐(惜元)
Hello postgres hackers, Recently I encountered an issue: pg_rewind fails when dealing with in-place tablespace. The problem seems to be that pg_rewind is treating in-place tablespace as symbolic link, while in fact it should be treated as directory. Here is the output of pg_rewind: pg_rewind: e