pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Stop WAL streaming on timeline history file write failures 6+ messages / 1 participants [nested] [flat]
* pgsql: Stop WAL streaming on timeline history file write failures @ 2026-11-18 04:31 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-18 04:31 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stop WAL streaming on timeline history file write failures pg_basebackup and pg_receivewal could continue streaming WAL after failing to write a timeline history file, leaving the backup or WAL archive without a file needed for recovery. ReceiveXlogStream() ignored the return value of writeTimeLineHistoryFile(), which reports errors and returns false on failure. Check the return value and stop the current streaming attempt if the write fails. Backpatch to all supported versions. Author: Chao Li <lic@highgo.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Discussion: https://postgr.es/m/530B55ED-C7F7-441C-BBC0-6F3F9901E414@gmail.com Backpatch-through: 15 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5dce44589444704a917b2d2f70c99d9ae357da73 Modified Files -------------- src/bin/pg_basebackup/receivelog.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Stop WAL streaming on timeline history file write failures @ 2026-11-18 04:32 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-18 04:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stop WAL streaming on timeline history file write failures pg_basebackup and pg_receivewal could continue streaming WAL after failing to write a timeline history file, leaving the backup or WAL archive without a file needed for recovery. ReceiveXlogStream() ignored the return value of writeTimeLineHistoryFile(), which reports errors and returns false on failure. Check the return value and stop the current streaming attempt if the write fails. Backpatch to all supported versions. Author: Chao Li <lic@highgo.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Discussion: https://postgr.es/m/530B55ED-C7F7-441C-BBC0-6F3F9901E414@gmail.com Backpatch-through: 15 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d758df2389af8c8b8deff22db1b977e6040deb37 Modified Files -------------- src/bin/pg_basebackup/receivelog.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Stop WAL streaming on timeline history file write failures @ 2026-11-18 04:32 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-18 04:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stop WAL streaming on timeline history file write failures pg_basebackup and pg_receivewal could continue streaming WAL after failing to write a timeline history file, leaving the backup or WAL archive without a file needed for recovery. ReceiveXlogStream() ignored the return value of writeTimeLineHistoryFile(), which reports errors and returns false on failure. Check the return value and stop the current streaming attempt if the write fails. Backpatch to all supported versions. Author: Chao Li <lic@highgo.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Discussion: https://postgr.es/m/530B55ED-C7F7-441C-BBC0-6F3F9901E414@gmail.com Backpatch-through: 15 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/65efcf45768c3eb3f91191e8191820da87f72aa6 Modified Files -------------- src/bin/pg_basebackup/receivelog.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Stop WAL streaming on timeline history file write failures @ 2026-11-18 04:32 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-18 04:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stop WAL streaming on timeline history file write failures pg_basebackup and pg_receivewal could continue streaming WAL after failing to write a timeline history file, leaving the backup or WAL archive without a file needed for recovery. ReceiveXlogStream() ignored the return value of writeTimeLineHistoryFile(), which reports errors and returns false on failure. Check the return value and stop the current streaming attempt if the write fails. Backpatch to all supported versions. Author: Chao Li <lic@highgo.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Discussion: https://postgr.es/m/530B55ED-C7F7-441C-BBC0-6F3F9901E414@gmail.com Backpatch-through: 15 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/41a8fa4811e3bee352fcf8534df8855b9823a8fd Modified Files -------------- src/bin/pg_basebackup/receivelog.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Stop WAL streaming on timeline history file write failures @ 2026-11-18 04:32 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-18 04:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stop WAL streaming on timeline history file write failures pg_basebackup and pg_receivewal could continue streaming WAL after failing to write a timeline history file, leaving the backup or WAL archive without a file needed for recovery. ReceiveXlogStream() ignored the return value of writeTimeLineHistoryFile(), which reports errors and returns false on failure. Check the return value and stop the current streaming attempt if the write fails. Backpatch to all supported versions. Author: Chao Li <lic@highgo.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Discussion: https://postgr.es/m/530B55ED-C7F7-441C-BBC0-6F3F9901E414@gmail.com Backpatch-through: 15 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f8b67085ddba9121f494f08d82ef4bfc5dc8431c Modified Files -------------- src/bin/pg_basebackup/receivelog.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Stop WAL streaming on timeline history file write failures @ 2026-11-18 04:32 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Fujii Masao @ 2026-11-18 04:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Stop WAL streaming on timeline history file write failures pg_basebackup and pg_receivewal could continue streaming WAL after failing to write a timeline history file, leaving the backup or WAL archive without a file needed for recovery. ReceiveXlogStream() ignored the return value of writeTimeLineHistoryFile(), which reports errors and returns false on failure. Check the return value and stop the current streaming attempt if the write fails. Backpatch to all supported versions. Author: Chao Li <lic@highgo.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Discussion: https://postgr.es/m/530B55ED-C7F7-441C-BBC0-6F3F9901E414@gmail.com Backpatch-through: 15 Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ab294dada6d03ca1c3b57ca5469df7e9cbfff8bf Modified Files -------------- src/bin/pg_basebackup/receivelog.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-11-18 04:32 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-18 04:31 pgsql: Stop WAL streaming on timeline history file write failures Fujii Masao <fujii@postgresql.org> 2026-11-18 04:32 pgsql: Stop WAL streaming on timeline history file write failures Fujii Masao <fujii@postgresql.org> 2026-11-18 04:32 pgsql: Stop WAL streaming on timeline history file write failures Fujii Masao <fujii@postgresql.org> 2026-11-18 04:32 pgsql: Stop WAL streaming on timeline history file write failures Fujii Masao <fujii@postgresql.org> 2026-11-18 04:32 pgsql: Stop WAL streaming on timeline history file write failures Fujii Masao <fujii@postgresql.org> 2026-11-18 04:32 pgsql: Stop WAL streaming on timeline history file write failures Fujii Masao <fujii@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox