pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: In Windows pg_dump, ensure idle workers will shut down during er 4+ messages / 1 participants [nested] [flat]
* pgsql: In Windows pg_dump, ensure idle workers will shut down during er @ 2016-05-26 14:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-05-26 14:51 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/df8d2d8c42c5731ad997793cb6a59b617532dffa Modified Files -------------- src/bin/pg_dump/parallel.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: In Windows pg_dump, ensure idle workers will shut down during er @ 2016-05-26 14:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-05-26 14:51 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6479df1378607e5edbe19cc28a3b52c62f11d8fa Modified Files -------------- src/bin/pg_dump/parallel.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: In Windows pg_dump, ensure idle workers will shut down during er @ 2016-05-26 14:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-05-26 14:51 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/d32bc204c733276810a400db41f64f32c489733f Modified Files -------------- src/bin/pg_dump/parallel.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: In Windows pg_dump, ensure idle workers will shut down during er @ 2016-05-26 14:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2016-05-26 14:51 UTC (permalink / raw) To: pgsql-committers 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 Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b9784e1f769497dcfaa1f866913f3d86a2adf176 Modified Files -------------- src/bin/pg_dump/parallel.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2016-05-26 14:51 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-05-26 14:51 pgsql: In Windows pg_dump, ensure idle workers will shut down during er Tom Lane <tgl@sss.pgh.pa.us> 2016-05-26 14:51 pgsql: In Windows pg_dump, ensure idle workers will shut down during er Tom Lane <tgl@sss.pgh.pa.us> 2016-05-26 14:51 pgsql: In Windows pg_dump, ensure idle workers will shut down during er Tom Lane <tgl@sss.pgh.pa.us> 2016-05-26 14:51 pgsql: In Windows pg_dump, ensure idle workers will shut down during er Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox