Skip to content

Commit 076d29a

Browse files
committed
Blind attempt at fixing Win32 pg_dump issues
Per buildfarm failures
1 parent 0eea804 commit 076d29a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bin/pg_dump/parallel.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ typedef struct
4747
{
4848
ArchiveHandle *AH;
4949
RestoreOptions *ropt;
50+
DumpOptions *dopt;
5051
int worker;
5152
int pipeRead;
5253
int pipeWrite;
@@ -464,12 +465,13 @@ init_spawned_worker_win32(WorkerInfo *wi)
464465
ArchiveHandle *AH;
465466
int pipefd[2] = {wi->pipeRead, wi->pipeWrite};
466467
int worker = wi->worker;
468+
DumpOptions *dopt = wi->dopt;
467469
RestoreOptions *ropt = wi->ropt;
468470

469471
AH = CloneArchive(wi->AH);
470472

471473
free(wi);
472-
SetupWorker(AH, pipefd, worker, ropt);
474+
SetupWorker(AH, pipefd, worker, dopt, ropt);
473475

474476
DeCloneArchive(AH);
475477
_endthreadex(0);
@@ -546,6 +548,7 @@ ParallelBackupStart(ArchiveHandle *AH, DumpOptions *dopt, RestoreOptions *ropt)
546548
wi = (WorkerInfo *) pg_malloc(sizeof(WorkerInfo));
547549

548550
wi->ropt = ropt;
551+
wi->dopt = dopt;
549552
wi->worker = i;
550553
wi->AH = AH;
551554
wi->pipeRead = pstate->parallelSlot[i].pipeRevRead = pipeMW[PIPE_READ];

src/bin/pg_dump/pg_backup_utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414
#include "postgres_fe.h"
1515

16+
#include "parallel.h"
1617
#include "pg_backup_utils.h"
1718

1819
/* Globals exported by this file */

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