Hi Hackers,

While reading contrib/pg_prewarm/autoprewarm.c, I noticed that it includes
broader wait-event/statistics headers than it appears to need.

autoprewarm.c only uses PG_WAIT_EXTENSION for WaitLatch(). That macro is
defined in utils/wait_classes.h, so the attached patch includes that header
directly instead of pulling in pgstat.h and utils/wait_event.h.

This is my first patch to PostgreSQL, so please let me know if I missed
anything or if the patch should be handled differently.

Tests: meson test -C build pg_prewarm/regress pg_prewarm/001_basic

Regards,

Dongpo Liu

Attachment: 0001-Use-wait_classes.h-in-pg_prewarm.patch
Description: Binary data

Reply via email to