pg_rewind fails with in-place tablespace - Mailing list pgsql-hackers

From 赵锐(惜元)
Subject pg_rewind fails with in-place tablespace
Date
Msg-id 2b79d2a8-b2d5-4bd7-a15b-31e485100980.xiyuan.zr@alibaba-inc.com
Whole thread Raw
Responses Re: pg_rewind fails with in-place tablespace
List pgsql-hackers
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: error: file "pg_tblspc/16385" is of different type in source and target

    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 the patch.
    Thank you for your attention to this matter.

Best regards,
Rui Zhao
Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Report distinct wait events when waiting for WAL "operation"
Next
From: Dmitry Koval
Date:
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands