]> granicus.if.org Git - postgresql/commit
Fix missing abort checks in pg_backup_directory.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2016 17:18:48 +0000 (13:18 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 May 2016 17:18:48 +0000 (13:18 -0400)
commit3c8aa6654a44837a2c60fc6061665df1adfd677c
tree4a6abe2d027e27fc908daf6cc9e93d20d0b60a9e
parent210981a4a9fdd19cb299f248a7ecc25db9bf7d9d
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