]> granicus.if.org Git - postgresql/commit
Check for interrupts during tuple-insertion loops.
authorRobert Haas <rhaas@postgresql.org>
Tue, 24 Jun 2014 01:45:21 +0000 (21:45 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 24 Jun 2014 01:45:21 +0000 (21:45 -0400)
commitc922353b1c7e7fe5fa506664ccf0c87a0abfdda2
treec9ee8f64beddbf27dcb7a2e56c7ac5356a991bc1
parent631e7f6b4e0629077408d3f8caf282627765f3f0
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).
src/backend/access/heap/heapam.c
src/backend/access/heap/tuptoaster.c