Improve database detection logic in datachecksumsworker

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 1df361e3d82c5eddccdb10f10dbaf611f752e1b9
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2026-04-30T11:41:55Z
Improve database detection logic in datachecksumsworker

The worker need to know whether a database which failed checksum
processing still exists, or has been dropped.  This improves the
detection logic by checking for being partially dropped.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Reviewed-by: SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Discussion: https://postgr.es/m/9197F930-DDEB-4CAC-82A2-16FEC715CCE8@yesql.se

Files

PathChange+/−
src/backend/postmaster/datachecksum_state.c modified +13 −3

Discussion