aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-06-03 21:25:43 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-06-03 21:25:43 -0400
commit974a2867ea5da8d5a8cc31bb9c8897e118fb1a89 (patch)
treeeb31710cc6c29e9687aee18e71fa0909b31f7f4a
parentba38967d7567342bb547d8aafa8e9bab24396df4 (diff)
downloadpostgresql-974a2867ea5da8d5a8cc31bb9c8897e118fb1a89.tar.gz
postgresql-974a2867ea5da8d5a8cc31bb9c8897e118fb1a89.zip
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
-rw-r--r--src/include/access/parallel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/parallel.h b/src/include/access/parallel.h
index dffe891ce61..f8e467f2916 100644
--- a/src/include/access/parallel.h
+++ b/src/include/access/parallel.h
@@ -47,8 +47,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)