pgsql: Check for interrupts during tuple-insertion loops.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Check for interrupts during tuple-insertion loops.
Date: 2014-06-24 02:01:52
Message-ID: E1WzG3U-0004TN-C7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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).

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c922353b1c7e7fe5fa506664ccf0c87a0abfdda2

Modified Files
--------------
src/backend/access/heap/heapam.c | 2 ++
src/backend/access/heap/tuptoaster.c | 3 +++
2 files changed, 5 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-06-24 10:32:45 pgsql: Don't allow foreign tables with OIDs.
Previous Message Andres Freund 2014-06-23 22:27:27 Re: pgsql: Do all-visible handling in lazy_vacuum_page() outside its critic