aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-05-26 10:50:30 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-05-26 10:50:30 -0400
commitdf8d2d8c42c5731ad997793cb6a59b617532dffa (patch)
treef66baf774d474ed96cafc00cceaa66eaad909241 /src/backend/tcop/postgres.c
parentb898eb63678d96482c1519c44f8ead073adf9bb7 (diff)
downloadpostgresql-df8d2d8c42c5731ad997793cb6a59b617532dffa.tar.gz
postgresql-df8d2d8c42c5731ad997793cb6a59b617532dffa.zip
In Windows pg_dump, ensure idle workers will shut down during error exit.
The Windows coding of ShutdownWorkersHard() thought that setting termEvent was sufficient to make workers exit after an error. But that only helps if a worker is busy and passes through checkAborting(). An idle worker will just sit, resulting in pg_dump failing to exit until the user gives up and hits control-C. We should close the write end of the command pipe so that idle workers will see socket EOF and exit, as the Unix coding was already doing. Back-patch to 9.3 where parallel pg_dump was introduced. Kyotaro Horiguchi
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions