Add initdb --sync-only option to sync the data directory to durable

Bruce Momjian <bruce@momjian.us>

Commit: 630cd14426dc1daf85163ad417f3a224eb4ac7b0
Author: Bruce Momjian <bruce@momjian.us>
Date: 2012-12-04T03:47:59Z
Releases: 9.3.0
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

PathChange+/−
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