From 3687b2e0eb2a9beae0c3abd9a291ec1ef9c876a6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 28 Dec 2009 18:39:03 +0000 Subject: [PATCH] Add PGDLLIMPORT for binary_upgrade global variables so shared object libraries can access them. --- src/backend/catalog/pg_type.c | 4 ++-- src/backend/catalog/toasting.c | 4 ++-- src/backend/commands/typecmds.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backend/catalog/pg_type.c b/src/backend/catalog/pg_type.c index 1f548cc94b..804dff6dec 100644 --- a/src/backend/catalog/pg_type.c +++ b/src/backend/catalog/pg_type.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/catalog/pg_type.c,v 1.128 2009/12/24 22:09:23 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/catalog/pg_type.c,v 1.129 2009/12/28 18:39:03 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -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 eef47dd532..e436cd269e 100644 --- a/src/backend/catalog/toasting.c +++ b/src/backend/catalog/toasting.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/catalog/toasting.c,v 1.23 2009/12/24 22:09:23 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/catalog/toasting.c,v 1.24 2009/12/28 18:39:03 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -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 a815752ecb..be493c317a 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.142 2009/12/27 14:50:43 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.143 2009/12/28 18:39:03 momjian Exp $ * * DESCRIPTION * The "DefineFoo" routines take the parse tree and pick out the @@ -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); -- 2.40.0