Misc cleanup in datachecksums_state.[ch]
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-06-24T12:07:24Z
Releases:
19 (unreleased)
Misc cleanup in datachecksums_state.[ch] Move DataChecksumsWorkerResult struct to the .c file. It's not used anywhere else since commit 07009121c2 removed the injection point test code that the comment referred to. Mark StartDataChecksumsWorkerLauncher() as static, since it's not called from outside the .c file. The DataChecksumsWorkerOperation struct can then be moved into the .c file too. Clarify the comment on StartDataChecksumsWorkerLauncher(). It said "Main entry point for datachecksumsworker launcher process", but I found that misleading. That description would be a better fit for DataChecksumsWorkerLauncherMain(), which is the process's "main" function, rather than StartDataChecksumsWorkerLauncher(). Fix comment on WaitForAllTransactionsToFinish() on postmaster death. The comment claimed that it sets "the abort flag" on postmaster death, but it actually just errors outs. Improve the comment to explain why it doesn't just use WL_EXIT_ON_PM_DEATH. Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://www.postgresql.org/message-id/b283fbb9-298e-4953-9120-eefaf24fae20@iki.fi
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/datachecksum_state.c | modified | +26 −9 |
| src/include/postmaster/datachecksum_state.h | modified | +0 −26 |
Discussion
- Little checksum worker cleanups 4 messages · 2026-06-23 → 2026-06-24