Add PGDLLIMPORT for binary_upgrade global variables so shared object
authorBruce Momjian <bruce@momjian.us>
Mon, 28 Dec 2009 18:39:03 +0000 (18:39 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 28 Dec 2009 18:39:03 +0000 (18:39 +0000)
libraries can access them.

src/backend/catalog/pg_type.c
src/backend/catalog/toasting.c
src/backend/commands/typecmds.c

index c3681ff158105c00d38a3784c50ba03d974aa686..289b7f5d3631d80c78ca592d69ac944048513645 100644 (file)
@@ -32,7 +32,7 @@
 #include "utils/rel.h"
 #include "utils/syscache.h"
 
-Oid binary_upgrade_next_pg_type_oid = InvalidOid;
+PGDLLIMPORT Oid binary_upgrade_next_pg_type_oid = InvalidOid;
 
 /* ----------------------------------------------------------------
  *     TypeShellMake
index e211f49c839fa35d06d7967e2c952c5f2877dcb0..28a87560d74990375f7f8dc2ff36063665865d12 100644 (file)
@@ -31,7 +31,7 @@
 #include "utils/builtins.h"
 #include "utils/syscache.h"
 
-Oid binary_upgrade_next_pg_type_toast_oid = InvalidOid;
+PGDLLIMPORT Oid binary_upgrade_next_pg_type_toast_oid = InvalidOid;
 
 static bool create_toast_table(Relation rel, Oid toastOid, Oid toastIndexOid,
                   Datum reloptions, bool force);
index f03b1dd90f090364932ad1c7734b6b1d2efde70e..c27d56b0de0b2dbdce54aaef002507c4f9f51124 100644 (file)
@@ -74,7 +74,7 @@ typedef struct
    /* atts[] is of allocated length RelationGetNumberOfAttributes(rel) */
 } RelToCheck;
 
-Oid binary_upgrade_next_pg_type_array_oid = InvalidOid;
+PGDLLIMPORT Oid binary_upgrade_next_pg_type_array_oid = InvalidOid;
 
 static Oid findTypeInputFunction(List *procname, Oid typeOid);
 static Oid findTypeOutputFunction(List *procname, Oid typeOid);