From 419e7284087647ec424692825acfb9d96dce3d51 Mon Sep 17 00:00:00 2001 From: 0xPoe Date: Sat, 27 Jun 2026 12:28:52 +0200 Subject: [PATCH] Use wait_classes.h in pg_prewarm autoprewarm.c only needs the PG_WAIT_EXTENSION wait-event class macro. Include utils/wait_classes.h directly instead of pulling in the broader pgstat.h and wait_event.h headers. Signed-off-by: 0xPoe --- contrib/pg_prewarm/autoprewarm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/pg_prewarm/autoprewarm.c b/contrib/pg_prewarm/autoprewarm.c index deb4c2671b5..b65efef89e8 100644 --- a/contrib/pg_prewarm/autoprewarm.c +++ b/contrib/pg_prewarm/autoprewarm.c @@ -30,7 +30,6 @@ #include "access/relation.h" #include "access/xact.h" -#include "pgstat.h" #include "postmaster/bgworker.h" #include "postmaster/interrupt.h" #include "storage/buf_internals.h" @@ -48,7 +47,7 @@ #include "utils/rel.h" #include "utils/relfilenumbermap.h" #include "utils/timestamp.h" -#include "utils/wait_event.h" +#include "utils/wait_classes.h" #define AUTOPREWARM_FILE "autoprewarm.blocks" -- 2.50.1 (Apple Git-155)