pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Make data checksums launcher cancel its worker at SIGINT
2+ messages / 1 participants
[nested] [flat]

* pgsql: Make data checksums launcher cancel its worker at SIGINT
@ 2026-08-17 20:47 Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Daniel Gustafsson @ 2026-08-17 20:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make data checksums launcher cancel its worker at SIGINT

Make sure the launcher cancels the currently running worker by calling
TerminateBackgroundWorker when it receives SIGINT.  In order to handle
cases where SIGINT arrives while tje launcher is waiting for a worker
to start or exit, implement a version of WaitForBackgroundWorkerStartup
and WaitForBackgroundWorkerShutdown which checks the abort_requested
signalling.  A new test which kills processing with SIGINT is added.

Backpatch to v19 where online checksums were introduced.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAHGQGwEQ1-+iPQnUpTXYiHmzSz9ufFVkOK4kL_uyTdYt7jgg0Q@mail.gmail.com
Backpatch-through: 19

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/datachecksum_state.c       | 112 +++++++++++++++++++---
src/test/modules/test_checksums/t/002_restarts.pl |  42 ++++++++
2 files changed, 143 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Make data checksums launcher cancel its worker at SIGINT
@ 2026-08-17 20:47 Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Daniel Gustafsson @ 2026-08-17 20:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make data checksums launcher cancel its worker at SIGINT

Make sure the launcher cancels the currently running worker by calling
TerminateBackgroundWorker when it receives SIGINT.  In order to handle
cases where SIGINT arrives while tje launcher is waiting for a worker
to start or exit, implement a version of WaitForBackgroundWorkerStartup
and WaitForBackgroundWorkerShutdown which checks the abort_requested
signalling.  A new test which kills processing with SIGINT is added.

Backpatch to v19 where online checksums were introduced.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAHGQGwEQ1-+iPQnUpTXYiHmzSz9ufFVkOK4kL_uyTdYt7jgg0Q@mail.gmail.com
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3a18526e8d6bcdd25db847128dd83bb4c1ba6ec2

Modified Files
--------------
src/backend/postmaster/datachecksum_state.c       | 112 +++++++++++++++++++---
src/test/modules/test_checksums/t/002_restarts.pl |  42 ++++++++
2 files changed, 143 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-08-17 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17 20:47 pgsql: Make data checksums launcher cancel its worker at SIGINT Daniel Gustafsson <dgustafsson@postgresql.org>
2026-08-17 20:47 pgsql: Make data checksums launcher cancel its worker at SIGINT Daniel Gustafsson <dgustafsson@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