From: Fujii Masao Date: Sun, 20 Jul 2025 03:00:46 +0000 (+0900) Subject: doc: Document reopen of output file via SIGHUP in pg_recvlogical. X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=f4a67e52b2a1a4f74297efdf3b3613b420d852f9;p=postgresql.git 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 Reviewed-by: Shinya Kato Discussion: http://postgr.es/m/0977fc4f-1523-4ecd-8a0e-391af4976367@oss.nttdata.com Backpatch-through: 13 --- diff --git a/doc/src/sgml/ref/pg_recvlogical.sgml b/doc/src/sgml/ref/pg_recvlogical.sgml index 7c01a5c3ba3..fbb1a2be7c8 100644 --- a/doc/src/sgml/ref/pg_recvlogical.sgml +++ b/doc/src/sgml/ref/pg_recvlogical.sgml @@ -46,6 +46,16 @@ PostgreSQL documentation a slot without consuming it, use pg_logical_slot_peek_changes. + + + When pg_recvlogical receives + a SIGHUP signal, it closes the current output file + and opens a new one using the filename specified by + the option. This allows us to rotate + the output file by first renaming the current file and then sending + a SIGHUP signal to + pg_recvlogical. +