Content-Length: 260491 | pFad | http://github.com/postgrespro/postgres_cluster/commit/d7de6a4790a8e2d61e985b7273557ee8fb7ffbc0

10 pg_upgrade: fix parallel/-j crash on Windows · postgrespro/postgres_cluster@d7de6a4 · GitHub
Skip to content

Commit d7de6a4

Browse files
committed
pg_upgrade: fix parallel/-j crash on Windows
This fixes the problem of passing the wrong function pointer when doing parallel copy/link operations on Windows. Backpatched to 9.3beta. Found and patch supplied by Andrew Dunstan
1 parent b32a25c commit d7de6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/parallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ parallel_transfer_all_new_dbs(DbInfoArr *old_db_arr, DbInfoArr *new_db_arr,
244244
strcpy(new_arg->new_pgdata, new_pgdata);
245245
strcpy(new_arg->old_tablespace, old_tablespace);
246246

247-
child = (HANDLE) _beginthreadex(NULL, 0, (void *) win32_exec_prog,
247+
child = (HANDLE) _beginthreadex(NULL, 0, (void *) win32_transfer_all_new_dbs,
248248
new_arg, 0, NULL);
249249
if (child == 0)
250250
pg_log(PG_FATAL, "could not create worker thread: %s\n", strerror(errno));

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/d7de6a4790a8e2d61e985b7273557ee8fb7ffbc0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy