From d33aeefd9b7c8c76f584432717dc944505565e52 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Sat, 26 Feb 2022 16:06:24 -0800 Subject: [PATCH] Fix warning on mingw due to pid_t width, introduced in fe0972ee5e6. --- src/backend/replication/slot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c index f238a392ae7..caa6b297560 100644 --- a/src/backend/replication/slot.c +++ b/src/backend/replication/slot.c @@ -571,7 +571,7 @@ restart: /* unlocked read of active_pid is ok for debugging purposes */ elog(DEBUG3, "temporary replication slot cleanup: %d in use, active_pid: %d", - i, s->active_pid); + i, (int) s->active_pid); SpinLockAcquire(&s->mutex); if (s->active_pid == MyProcPid)