Fix missing abort checks in pg_backup_directory.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2016 17:18:49 +0000 (13:18 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2016 17:18:49 +0000 (13:18 -0400)
commit3033e7359fb850d71ffe9deb88d013cf83a98ad2
treec70a5352d222b2f5e5259b7cb7431b365d21ea34
parent99e3298181546bb31895b6f7123ece222427c8dc
Fix missing abort checks in pg_backup_directory.c.

Parallel restore from directory format failed to respond to control-C
in a timely manner, because there were no checkAborting() calls in the
code path that reads data from a file and sends it to the backend.
If any worker was in the midst of restoring data for a large table,
you'd just have to wait.

This fix doesn't do anything for the problem of aborting a long-running
server-side command, but at least it fixes things for data transfers.

Back-patch to 9.3 where parallel restore was introduced.
src/bin/pg_dump/pg_backup_directory.c