From 88b9c0a12e1111ab3daf7e22616470d9519545fa Mon Sep 17 00:00:00 2001 From: Maksim Milyutin Date: Thu, 11 Aug 2022 00:29:23 +0400 Subject: [PATCH] Add missing PGDLLEXPORT markings for collector_main function After commit 089480c07, it's necessary for background worker entry points to be marked PGDLLEXPORT, else they aren't findable by LookupBackgroundWorkerFunction(). --- pg_wait_sampling.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_wait_sampling.h b/pg_wait_sampling.h index bb0e1d8..64bd581 100644 --- a/pg_wait_sampling.h +++ b/pg_wait_sampling.h @@ -81,7 +81,7 @@ extern void init_lock_tag(LOCKTAG *tag, uint32 lock); /* collector.c */ extern void register_wait_collector(void); extern void alloc_history(History *, int); -extern void collector_main(Datum main_arg); +PGDLLEXPORT extern void collector_main(Datum main_arg); extern void shm_mq_detach_compat(shm_mq_handle *mqh, shm_mq *mq); extern shm_mq_result shm_mq_send_compat(shm_mq_handle *mqh, Size nbytes,