Skip to content

Commit

Permalink
Populate bgw_type in PostgreSQL 11
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoslot committed Aug 22, 2018
1 parent a62e672 commit 5b5f5e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pg_cron.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ _PG_init(void)
worker.bgw_notify_pid = 0;
sprintf(worker.bgw_library_name, "pg_cron");
sprintf(worker.bgw_function_name, "PgCronWorkerMain");
snprintf(worker.bgw_name, BGW_MAXLEN, "pg_cron_scheduler");
snprintf(worker.bgw_name, BGW_MAXLEN, "pg_cron scheduler");
#if (PG_VERSION_NUM >= 110000)
snprintf(worker.bgw_type, BGW_MAXLEN, "pg_cron scheduler");
#endif

RegisterBackgroundWorker(&worker);
}
Expand Down

0 comments on commit 5b5f5e4

Please sign in to comment.