Skip to content

Commit e28b7af

Browse files
author
Aleksandr Parfenov
committed
Fix Windows Access Violation error during collector start up
1 parent bd4e5dd commit e28b7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: collector.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ register_wait_collector(void)
4242
worker.bgw_start_time = BgWorkerStart_ConsistentState;
4343
worker.bgw_restart_time = 0;
4444
worker.bgw_notify_pid = 0;
45-
#if PG_VERSION_NUM >= 100000
45+
#if PG_VERSION_NUM >= 100000 || defined(WIN32)
4646
memcpy(worker.bgw_library_name, "pg_wait_sampling", BGW_MAXLEN);
4747
memcpy(worker.bgw_function_name, CppAsString(collector_main), BGW_MAXLEN);
4848
#else

0 commit comments

Comments
 (0)