agora inbox for [email protected]
help / color / mirror / Atom feedFrom: Ronan Dunklau <[email protected]>
Subject: [PATCH v8 3/4] Add documentation for pg_receivewal
Date: Mon, 6 Sep 2021 11:08:54 +0200
---
doc/src/sgml/ref/pg_receivewal.sgml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml
index 45b544cf49..5fb2b61d34 100644
--- a/doc/src/sgml/ref/pg_receivewal.sgml
+++ b/doc/src/sgml/ref/pg_receivewal.sgml
@@ -37,6 +37,32 @@ PostgreSQL documentation
<xref linkend="continuous-archiving"/>).
</para>
+ <para>
+ When <application>pg_receivewal</application> is launched, it tries to determine the
+ starting LSN from the following sources:
+ <orderedlist>
+ <listitem>
+ <para>
+ It scans the target directory to determine the next file it should archive.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ If it doesn't find that file, and a slot was specified, it uses the
+ <command>READ_REPLICATION_SLOT</command> command to retrieve the slot's <literal>restart_lsn</literal>
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ If it still don't find a valid start position via <command>READ_REPLICATION_SLOT</command>,
+ it uses the last flush location as reported by the server.
+ </para>
+ </listitem>
+ </orderedlist>
+ </para>
+
<para>
<application>pg_receivewal</application> streams the write-ahead
log in real time as it's being generated on the server, and does not wait
--
2.33.0
--nextPart2557710.X9hSmTKtgW
Content-Disposition: attachment;
filename="v8-0004-Add-tests-making-sure-pg_receivewal-can-follow-a-.patch"
Content-Transfer-Encoding: 7Bit
Content-Type: text/x-patch; charset="UTF-8";
name="v8-0004-Add-tests-making-sure-pg_receivewal-can-follow-a-.patch"
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH v8 3/4] Add documentation for pg_receivewal
In-Reply-To: <no-message-id-151179@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox