Mark a few parallelism-related variables with PGDLLIMPORT.
authorTom Lane <[email protected]>
Tue, 4 Jun 2019 01:25:43 +0000 (21:25 -0400)
committerTom Lane <[email protected]>
Tue, 4 Jun 2019 01:25:43 +0000 (21:25 -0400)
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[email protected]

src/include/access/parallel.h

index fd203daaf7b7d1716ecfaabc8eaf384da9e88515..59e14a9d500ee8be4666de3c27990903973bc5ac 100644 (file)
@@ -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)