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