Add initdb --sync-only option to sync the data directory to durable
Bruce Momjian <bruce@momjian.us>
Add initdb --sync-only option to sync the data directory to durable storage. Have pg_upgrade use it, and enable server options fsync=off and full_page_writes=off. Document that users turning fsync from off to on should run initdb --sync-only. [ Previous commit was incorrectly applied as a git merge. ]
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade/pg_upgrade.c | modified | +6 −0 |
| contrib/pg_upgrade/server.c | modified | +6 −4 |
| doc/src/sgml/config.sgml | modified | +9 −0 |
| doc/src/sgml/ref/initdb.sgml | modified | +11 −0 |
| src/bin/initdb/initdb.c | modified | +15 −1 |