[bug fix] pg_rewind takes long time because it mistakenly copiesdata files - Mailing list pgsql-hackers

From Tsunakawa, Takayuki
Subject [bug fix] pg_rewind takes long time because it mistakenly copiesdata files
Date
Msg-id 0A3221C70F24FB45833433255569204D1F8D6C7A@G01JPEXMBYT05
Whole thread Raw
Responses Re: [bug fix] pg_rewind takes long time because it mistakenly copiesdata files
List pgsql-hackers
Hello,

Our customer reported that pg_rewind took many hours to synchronize 400GB of data, even if the new primary doesn't
performany updates.  The attached patch fixes that.
 

The cause was that pg_rewind failed to recognize data files in tablespace directories, resulting in the full copy of
thosefiles instead of WAL replay.
 

Regards
Takayuki Tsunakawa




Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: remove pg_class.relhaspkey
Next
From: Michael Paquier
Date:
Subject: Re: remove pg_class.relhaspkey