Skip to content

Commit 7efaf0a

Browse files
committed
doc: Document reopen of output file via SIGHUP in pg_recvlogical.
When pg_recvlogical receives a SIGHUP signal, it closes the current output file and reopens a new one. This is useful since it allows us to rotate the output file by renaming the current file and sending a SIGHUP. This behavior was previously undocumented. This commit adds the missing documentation. Back-patch to all supported versions. Author: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Shinya Kato <shinya11.kato@gmail.com> Discussion: https://postgr.es/m/0977fc4f-1523-4ecd-8a0e-391af4976367@oss.nttdata.com Backpatch-through: 13
1 parent bedfdb8 commit 7efaf0a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/src/sgml/ref/pg_recvlogical.sgml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ PostgreSQL documentation
4646
a slot without consuming it, use
4747
<link linkend="functions-replication"><function>pg_logical_slot_peek_changes</function></link>.
4848
</para>
49+
50+
<para>
51+
When <application>pg_recvlogical</application> receives
52+
a <systemitem>SIGHUP</systemitem> signal, it closes the current output file
53+
and opens a new one using the filename specified by
54+
the <option>--file</option> option. This allows us to rotate
55+
the output file by first renaming the current file and then sending
56+
a <systemitem>SIGHUP</systemitem> signal to
57+
<application>pg_recvlogical</application>.
58+
</para>
4959
</refsect1>
5060

5161
<refsect1>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy