Need to decorate XactIsoLevel as PGDLLIMPORT for postgres_fdw.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 21 Feb 2013 14:28:42 +0000 (09:28 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 21 Feb 2013 14:28:42 +0000 (09:28 -0500)
Per buildfarm.

contrib/postgres_fdw/connection.c
src/include/access/xact.h

index 62ccea4c460bfd5218ac612657e007e125b1d09e..0e54901061c7697379c4b86f726d585cd174079c 100644 (file)
@@ -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";
index 8cadc549716479a807f713e7f76291d5c7ab7789..09e6a6842c2039dc2b7c99cad74a6e83a6d9e9e6 100644 (file)
@@ -28,7 +28,7 @@
 #define XACT_SERIALIZABLE      3
 
 extern int DefaultXactIsoLevel;
-extern int XactIsoLevel;
+extern PGDLLIMPORT int XactIsoLevel;
 
 /*
  * We implement three isolation levels internally.