Skip site navigation (1) Skip section navigation (2)

pgsql: Add initdb --sync-only option to sync the data directory todura

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add initdb --sync-only option to sync the data directory todura
Date: 2012-12-04 03:48:09
Message-ID: E1TfjUP-0007Ap-Cl@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
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. ]

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/630cd14426dc1daf85163ad417f3a224eb4ac7b0

Modified Files
--------------
contrib/pg_upgrade/pg_upgrade.c |    6 ++++++
contrib/pg_upgrade/server.c     |   10 ++++++----
doc/src/sgml/config.sgml        |    9 +++++++++
doc/src/sgml/ref/initdb.sgml    |   11 +++++++++++
src/bin/initdb/initdb.c         |   16 +++++++++++++++-
5 files changed, 47 insertions(+), 5 deletions(-)


pgsql-committers by date

Next:From: Bruce MomjianDate: 2012-12-04 04:23:01
Subject: pgsql: In initdb.c, rename some newly created functions,and move the d
Previous:From: Bruce MomjianDate: 2012-12-04 03:46:56
Subject: pgsql: Revert initdb --sync-only patch that had incorrect commitmessag

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group