diff options
author | Andres Freund <andres@anarazel.de> | 2014-10-06 12:51:37 +0200 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2014-10-06 12:51:37 +0200 |
commit | d9f38c7a555dd5a6b81100c6d1e4aa68342d8771 (patch) | |
tree | bae23fcd90c4d8c11778d7a6c2deaa9f7756e543 /doc/src | |
parent | c8b6cba84a986ae9154f748e44709a17d6723191 (diff) | |
download | postgresql-d9f38c7a555dd5a6b81100c6d1e4aa68342d8771.tar.gz postgresql-d9f38c7a555dd5a6b81100c6d1e4aa68342d8771.zip |
Add support for managing physical replication slots to pg_receivexlog.
pg_receivexlog already has the capability to use a replication slot to
reserve WAL on the upstream node. But the used slot currently has to
be created via SQL.
To allow using slots directly, without involving SQL, add
--create-slot and --drop-slot actions, analogous to the logical slot
manipulation support in pg_recvlogical.
Author: Michael Paquier
Discussion: CABUevEx+zrOHZOQg+dPapNPFRJdsk59b=TSVf30Z71GnFXhQaw@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_receivexlog.sgml | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/pg_receivexlog.sgml b/doc/src/sgml/ref/pg_receivexlog.sgml index 5916b8f40da..c1af12abf75 100644 --- a/doc/src/sgml/ref/pg_receivexlog.sgml +++ b/doc/src/sgml/ref/pg_receivexlog.sgml @@ -255,7 +255,9 @@ PostgreSQL documentation to make sure that <application>pg_receivexlog</> cannot become the synchronous standby through an incautious setting of <xref linkend="guc-synchronous-standby-names">; it does not flush - data frequently enough for this to work correctly. + data frequently enough for this to work correctly. In + <option>--create-slot</option> mode, create the slot with this name. + In <option>--drop-slot</option> mode, delete the slot with this name. </para> </listitem> </varlistentry> @@ -263,6 +265,33 @@ PostgreSQL documentation </para> <para> + <application>pg_receivexlog</application> can perform one of the two + following actions in order to control physical replication slots: + + <variablelist> + <varlistentry> + <term><option>--create-slot</option></term> + <listitem> + <para> + Create a new physical replication slot with the name specified in + <option>--slot</option>, then start to stream WAL. + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term><option>--drop-slot</option></term> + <listitem> + <para> + Drop the replication slot with the name specified in + <option>--slot</option>, then exit. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + + <para> Other options are also available: <variablelist> |