pgsql: In Windows pg_dump, ensure idle workers will shut down during er

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: In Windows pg_dump, ensure idle workers will shut down during er
Дата
Msg-id E1b5wcm-0000MJ-7w@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: In Windows pg_dump, ensure idle workers will shut down during er
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Make pg_dump behave more sanely when built without HAVE_LIBZ.