mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add pg_dump --snapshot option
Allows pg_dump to use a snapshot previously defined by a concurrent session that has either used pg_export_snapshot() or obtained a snapshot when creating a logical slot. When this option is used with parallel pg_dump, the snapshot defined by this option is used and no new snapshot is taken. Simon Riggs and Michael Paquier
This commit is contained in:
@ -847,6 +847,27 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--snapshot=<replaceable class="parameter">snapshotname</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Use the specifed synchronized snapshot when making a dump of the
|
||||
database (see
|
||||
<xref linkend="functions-snapshot-synchronization-table"> for more
|
||||
details).
|
||||
</para>
|
||||
<para>
|
||||
This option is useful when needing to synchronize the dump with
|
||||
a logical replication slot (see <xref linkend="logicaldecoding">)
|
||||
or with a concurrent session.
|
||||
</para>
|
||||
<para>
|
||||
In the case of a parallel dump, the snapshot name defined by this
|
||||
option is used rather than taking a new snapshot.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--serializable-deferrable</option></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user