Skip to content

Commit 3687b2e

Browse files
committed
Add PGDLLIMPORT for binary_upgrade global variables so shared object
libraries can access them.
1 parent d2225da commit 3687b2e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/backend/catalog/pg_type.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/pg_type.c,v 1.128 2009/12/24 22:09:23 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/pg_type.c,v 1.129 2009/12/28 18:39:03 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -32,7 +32,7 @@
3232
#include "utils/rel.h"
3333
#include "utils/syscache.h"
3434

35-
Oid binary_upgrade_next_pg_type_oid = InvalidOid;
35+
PGDLLIMPORT Oid binary_upgrade_next_pg_type_oid = InvalidOid;
3636

3737
/* ----------------------------------------------------------------
3838
* TypeShellMake

src/backend/catalog/toasting.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/toasting.c,v 1.23 2009/12/24 22:09:23 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/toasting.c,v 1.24 2009/12/28 18:39:03 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -31,7 +31,7 @@
3131
#include "utils/builtins.h"
3232
#include "utils/syscache.h"
3333

34-
Oid binary_upgrade_next_pg_type_toast_oid = InvalidOid;
34+
PGDLLIMPORT Oid binary_upgrade_next_pg_type_toast_oid = InvalidOid;
3535

3636
static bool create_toast_table(Relation rel, Oid toastOid, Oid toastIndexOid,
3737
Datum reloptions, bool force);

src/backend/commands/typecmds.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.142 2009/12/27 14:50:43 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.143 2009/12/28 18:39:03 momjian Exp $
1212
*
1313
* DESCRIPTION
1414
* The "DefineFoo" routines take the parse tree and pick out the
@@ -74,7 +74,7 @@ typedef struct
7474
/* atts[] is of allocated length RelationGetNumberOfAttributes(rel) */
7575
} RelToCheck;
7676

77-
Oid binary_upgrade_next_pg_type_array_oid = InvalidOid;
77+
PGDLLIMPORT Oid binary_upgrade_next_pg_type_array_oid = InvalidOid;
7878

7979
static Oid findTypeInputFunction(List *procname, Oid typeOid);
8080
static Oid findTypeOutputFunction(List *procname, Oid typeOid);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy