Skip to content

Commit

Permalink
Merge pull request #7 from asp437/windows-access-violation-fix
Browse files Browse the repository at this point in the history
Fix Windows Access Violation error during collector start up
  • Loading branch information
ildus authored Mar 5, 2018
2 parents bd4e5dd + e28b7af commit 1ab3270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ register_wait_collector(void)
worker.bgw_start_time = BgWorkerStart_ConsistentState;
worker.bgw_restart_time = 0;
worker.bgw_notify_pid = 0;
#if PG_VERSION_NUM >= 100000
#if PG_VERSION_NUM >= 100000 || defined(WIN32)
memcpy(worker.bgw_library_name, "pg_wait_sampling", BGW_MAXLEN);
memcpy(worker.bgw_function_name, CppAsString(collector_main), BGW_MAXLEN);
#else
Expand Down

0 comments on commit 1ab3270

Please sign in to comment.