Check for interrupts during tuple-insertion loops.

Robert Haas <rhaas@postgresql.org>

Commit: c922353b1c7e7fe5fa506664ccf0c87a0abfdda2
Author: Robert Haas <rhaas@postgresql.org>
Date: 2014-06-24T01:45:21Z
Releases: 9.5.0
Check for interrupts during tuple-insertion loops.

Normally, this won't matter too much; but if I/O is really slow, for
example because the system is overloaded, we might write many pages
before checking for interrupts.  A single toast insertion might
write up to 1GB of data, and a multi-insert could write hundreds
of tuples (and their corresponding TOAST data).

Files

PathChange+/−
src/backend/access/heap/heapam.c modified +2 −0
src/backend/access/heap/tuptoaster.c modified +3 −0