From: Tom Lane Date: Tue, 4 Jun 2019 01:25:43 +0000 (-0400) Subject: Mark a few parallelism-related variables with PGDLLIMPORT. X-Git-Tag: REL9_6_14~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f46eae4fc140ae7e86825095ea7e029cbecddfc7;p=postgresql Mark a few parallelism-related variables with PGDLLIMPORT. Back-patch commit 09a65f5a2 into the 9.6 and 10 branches. Needed to support back-patch of commit 2cd4e8357 on Windows. Discussion: http://postgr.es/m/20190604011354.GD1529@paquier.xyz --- diff --git a/src/include/access/parallel.h b/src/include/access/parallel.h index fd203daaf7..59e14a9d50 100644 --- a/src/include/access/parallel.h +++ b/src/include/access/parallel.h @@ -48,8 +48,8 @@ typedef struct ParallelContext } ParallelContext; extern volatile bool ParallelMessagePending; -extern int ParallelWorkerNumber; -extern bool InitializingParallelWorker; +extern PGDLLIMPORT int ParallelWorkerNumber; +extern PGDLLIMPORT bool InitializingParallelWorker; #define IsParallelWorker() (ParallelWorkerNumber >= 0)