Skip to content

Commit 8141523

Browse files
committed
Properly define pg_upgrade global variable, per bug report from Chris
Ruprecht on Mac (64 bit).
1 parent 6bbaa31 commit 8141523

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

contrib/pg_upgrade/pg_upgrade.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ typedef struct
237237
/*
238238
* Global variables
239239
*/
240-
char scandir_file_pattern[MAXPGPATH];
240+
extern char scandir_file_pattern[];
241241

242242

243243
/* check.c */

contrib/pg_upgrade/relfilenode.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ static void transfer_relfile(migratorContext *ctx, pageCnvCtx *pageConverter,
1717
const char *oldnspname, const char *oldrelname,
1818
const char *newnspname, const char *newrelname);
1919

20+
/* used by scandir(), must be global */
21+
char scandir_file_pattern[MAXPGPATH];
22+
2023
/*
2124
* transfer_all_new_dbs()
2225
*

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