Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite96fcb0

Browse files
committed
Now that the shared library name can be adjusted in the library test,
have pg_upgrade allocate a maximum fixed size buffer for testing thelibrary file name, rather than base the allocation on the library name.Backpatch to 9.1.
1 parentfa4dad6 commite96fcb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎contrib/pg_upgrade/function.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ check_loadable_libraries(void)
224224
{
225225
char*lib=os_info.libraries[libnum];
226226
intllen=strlen(lib);
227-
char*cmd= (char*)pg_malloc(8+2*llen+1);
227+
charcmd[7+2*MAXPGPATH+1];
228228
PGresult*res;
229229

230230
/*
@@ -261,7 +261,6 @@ check_loadable_libraries(void)
261261
}
262262

263263
PQclear(res);
264-
pg_free(cmd);
265264
}
266265

267266
PQfinish(conn);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp