summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2013-02-21 14:28:42 +0000
committerTom Lane2013-02-21 14:28:42 +0000
commit54a278683531edac535e6aa4d5427799409823f1 (patch)
treec5ca070c91f1b751c3362646f9be7ee84698c721
parent699d70b2ec2cb6dc07f6c5b2876609301ddd20a8 (diff)
Need to decorate XactIsoLevel as PGDLLIMPORT for postgres_fdw.
Per buildfarm.
-rw-r--r--contrib/postgres_fdw/connection.c2
-rw-r--r--src/include/access/xact.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c
index 62ccea4c460..0e54901061c 100644
--- a/contrib/postgres_fdw/connection.c
+++ b/contrib/postgres_fdw/connection.c
@@ -305,7 +305,7 @@ begin_remote_xact(ConnCacheEntry *entry)
elog(DEBUG3, "starting remote transaction on connection %p",
entry->conn);
- if (XactIsoLevel == XACT_SERIALIZABLE)
+ if (IsolationIsSerializable())
sql = "START TRANSACTION ISOLATION LEVEL SERIALIZABLE";
else
sql = "START TRANSACTION ISOLATION LEVEL REPEATABLE READ";
diff --git a/src/include/access/xact.h b/src/include/access/xact.h
index 8cadc549716..09e6a6842c2 100644
--- a/src/include/access/xact.h
+++ b/src/include/access/xact.h
@@ -28,7 +28,7 @@
#define XACT_SERIALIZABLE 3
extern int DefaultXactIsoLevel;
-extern int XactIsoLevel;
+extern PGDLLIMPORT int XactIsoLevel;
/*
* We implement three isolation levels internally.