[bug fix] pg_rewind takes long time because it mistakenly copies data files
Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>
From: "Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2018-02-26T06:01:43Z
Lists: pgsql-hackers
Attachments
- pg_rewind_pathcmp.patch (application/octet-stream) patch
Hello, Our customer reported that pg_rewind took many hours to synchronize 400GB of data, even if the new primary doesn't perform any 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 those files instead of WAL replay. Regards Takayuki Tsunakawa
Commits
-
Fix pg_rewind to handle relation data files in tablespaces properly.
- cb5c141edac5 9.5.13 landed
- 7aba4f23f5b7 9.6.9 landed
- bca696ab0bff 10.4 landed
- 2f3e2340cd1b 11.0 landed