mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Sync pg_dump and pg_dumpall output
Before exiting any files are fsync'ed. A --no-sync option is also provided for a faster exit if desired. Michael Paquier. Reviewed by Albe Laurenz Discussion: https://postgr.es/m/CAB7nPqS1uZ=Ov+UruW6jr3vB-S_DLVMPc0dQpV-fTDjmm0ZQMg@mail.gmail.com
This commit is contained in:
@ -859,6 +859,20 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-sync</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
By default, <command>pg_dump</command> will wait for all files
|
||||
to be written safely to disk. This option causes
|
||||
<command>pg_dump</command> to return without waiting, which is
|
||||
faster, but means that a subsequent operating system crash can leave
|
||||
the dump corrupt. Generally, this option is useful for testing
|
||||
but should not be used when dumping data from production installation.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--quote-all-identifiers</></term>
|
||||
<listitem>
|
||||
|
@ -354,6 +354,20 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-sync</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
By default, <command>pg_dumpall</command> will wait for all files
|
||||
to be written safely to disk. This option causes
|
||||
<command>pg_dumpall</command> to return without waiting, which is
|
||||
faster, but means that a subsequent operating system crash can leave
|
||||
the dump corrupt. Generally, this option is useful for testing
|
||||
but should not be used when dumping data from production installation.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--no-tablespaces</option></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user