Skip to content

Commit 1ab3270

Browse files
authored
Merge pull request #7 from asp437/windows-access-violation-fix
Fix Windows Access Violation error during collector start up
2 parents bd4e5dd + e28b7af commit 1ab3270

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)