Fix warning on mingw due to pid_t width, introduced in fe0972ee5e6.
authorAndres Freund <andres@anarazel.de>
Sun, 27 Feb 2022 00:06:24 +0000 (16:06 -0800)
committerAndres Freund <andres@anarazel.de>
Sun, 27 Feb 2022 00:07:07 +0000 (16:07 -0800)
src/backend/replication/slot.c

index f238a392ae7eb70fddfb69670bb557a7311aa4d5..caa6b297560ef530e140409b0b35fb9359e2d2f4 100644 (file)
@@ -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)