pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add regression test for background worker restart after crash.
Date: Tue, 29 Jul 2025 10:44:14 +0000
Message-ID: <E1ughoc-001IdJ-16@gemulon.postgresql.org> (raw)

Add regression test for background worker restart after crash.

Previously, if a background worker crashed and the server restarted
with restart_after_crash enabled, the worker was not restarted
as expected. This issue was fixed by commit b5d084c5353,
which ensures that background workers without the never-restart flag
are correctly restarted after a crash-and-restart cycle.

To guard against regressions, this commit adds a test that verifies
a background worker successfully restarts in such a scenario.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: ChangAo Chen <cca5507@qq.com>
Discussion: https://postgr.es/m/CAHGQGwHF-PdUOgiXCH_8K5qBm8b13h0Qt=dSoFXZybXQdbf-tw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cc321b1d1c55fe208a394b0f8e0e99c5fb91742c

Modified Files
--------------
src/test/recovery/t/013_crash_restart.pl | 7 +++++++
1 file changed, 7 insertions(+)



Message-ID: <E1ughoc-001IdJ-16@gemulon.postgresql.org>
Permalink:  ../E1ughoc-001IdJ-16@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ughoc-001IdJ-16@gemulon.postgresql.org

 · 

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: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add regression test for background worker restart after crash.
  In-Reply-To: <E1ughoc-001IdJ-16@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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