pgsql: Fix missing abort checks in pg_backup_directory.c. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix missing abort checks in pg_backup_directory.c.
Date
Msg-id E1b74Mi-0006Lw-0R@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/73f5acce3f5f56189ead7666cf932e52b6c42adb

Modified Files
--------------
src/bin/pg_dump/pg_backup_directory.c | 8 ++++++++
1 file changed, 8 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix missing abort checks in pg_backup_directory.c.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Fix PageAddItem BRIN bug