From: Bruce Momjian Date: Mon, 28 Dec 2009 18:39:03 +0000 (+0000) Subject: Add PGDLLIMPORT for binary_upgrade global variables so shared object X-Git-Url: http://git.postgresql.org/gitweb/delmail?a=commitdiff_plain;h=6b19569058d60dd38fdee67253497b25c543c434;p=users%2Fandresfreund%2Fpostgres.git Add PGDLLIMPORT for binary_upgrade global variables so shared object libraries can access them. --- diff --git a/src/backend/catalog/pg_type.c b/src/backend/catalog/pg_type.c index c3681ff158..289b7f5d36 100644 --- a/src/backend/catalog/pg_type.c +++ b/src/backend/catalog/pg_type.c @@ -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 diff --git a/src/backend/catalog/toasting.c b/src/backend/catalog/toasting.c index e211f49c83..28a87560d7 100644 --- a/src/backend/catalog/toasting.c +++ b/src/backend/catalog/toasting.c @@ -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); diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index f03b1dd90f..c27d56b0de 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -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);