mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
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. ]
This commit is contained in:
@@ -244,6 +244,17 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-S</option></term>
|
||||
<term><option>--sync-only</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Safely write all database files to disk and exit. This does not
|
||||
perform any of the normal <application>initdb</> operations.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-T <replaceable>CFG</></option></term>
|
||||
<term><option>--text-search-config=<replaceable>CFG</></option></term>
|
||||
|
||||
Reference in New Issue
Block a user