From aec5f239b2b09fd877faebb684cd6885b165bd62 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 28 May 2026 12:05:31 +0200 Subject: [PATCH 3/3] Use correct datatype for PID The datachecksums launcher was using int for storing a PID, but the correct type is pid_t (which is defined to be a signed int). Author: Tomas Vondra Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/f1281cf3-89a3-4936-9bc5-2a5a6291229f@vondra.me --- src/backend/postmaster/datachecksum_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/postmaster/datachecksum_state.c b/src/backend/postmaster/datachecksum_state.c index b61674ae957..b578a7cc70e 100644 --- a/src/backend/postmaster/datachecksum_state.c +++ b/src/backend/postmaster/datachecksum_state.c @@ -303,7 +303,7 @@ typedef struct DataChecksumsStateStruct * none. This is set by the worker launcher when it starts waiting for a * worker process to finish. */ - int worker_pid; + pid_t worker_pid; /* * These fields indicate the target state that the launcher is currently -- 2.39.3 (Apple Git-146)