Simplify logic to sync target directory at the end of pg_rewind
Michael Paquier <michael@paquier.xyz>
Simplify logic to sync target directory at the end of pg_rewind The previous sync logic relied on looking for and then launching externally initdb -S, which is a simple wrapper on top of fsync_pgdata. There is nothing preventing pg_rewind to directly call this routine, so remove the dependency to initdb and just call it directly. Author: Michael Paquier Reviewed-by: Heikki Linnakangas Discussion: https://postgr.es/m/20180325122607.GB3707@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_rewind/pg_rewind.c | modified | +5 −39 |
Discussion
- Simplify final sync in pg_rewind's target folder and add --no-sync 4 messages · 2018-03-25 → 2018-07-10