]> granicus.if.org Git - postgresql/commit
Add initdb --sync-only option to sync the data directory to durable
authorBruce Momjian <bruce@momjian.us>
Tue, 4 Dec 2012 03:47:59 +0000 (22:47 -0500)
committerBruce Momjian <bruce@momjian.us>
Tue, 4 Dec 2012 03:47:59 +0000 (22:47 -0500)
commit630cd14426dc1daf85163ad417f3a224eb4ac7b0
tree23f5fddd97f57407c847a12cad429758d2c0eca6
parent25d1ed04a2c4d176f6428b9eed57344e50f44d77
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. ]
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/server.c
doc/src/sgml/config.sgml
doc/src/sgml/ref/initdb.sgml
src/bin/initdb/initdb.c