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

Commit6d5aae7

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 parenta7f2c79 commit6d5aae7

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
@@ -225,7 +225,7 @@ check_loadable_libraries(void)
225225
{
226226
char*lib=os_info.libraries[libnum];
227227
intllen=strlen(lib);
228-
char*cmd= (char*)pg_malloc(8+2*llen+1);
228+
charcmd[7+2*MAXPGPATH+1];
229229
PGresult*res;
230230

231231
/*
@@ -266,7 +266,6 @@ check_loadable_libraries(void)
266266
}
267267

268268
PQclear(res);
269-
pg_free(cmd);
270269
}
271270

272271
PQfinish(conn);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp