Skip to content

Commit

Permalink
Fix compilation for PostgreSQL <11
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSenellart committed Feb 16, 2024
1 parent 3286302 commit 0208dab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provsql_mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ void RegisterProvSQLMMapWorker(void)
BackgroundWorker worker;

snprintf(worker.bgw_name, BGW_MAXLEN, "ProvSQL MMap Worker");
#if PG_VERSION_NUM >= 110000
snprintf(worker.bgw_type, BGW_MAXLEN, "ProvSQL MMap");
#endif

worker.bgw_flags = BGWORKER_SHMEM_ACCESS;
worker.bgw_start_time = BgWorkerStart_PostmasterStart;
Expand Down

0 comments on commit 0208dab

Please sign in to comment.