Add a CHECK_FOR_INTERRUPTS call in the site where the vacuum delay point
authorAlvaro Herrera <[email protected]>
Wed, 12 Sep 2007 02:05:55 +0000 (02:05 +0000)
committerAlvaro Herrera <[email protected]>
Wed, 12 Sep 2007 02:05:55 +0000 (02:05 +0000)
was removed.

src/backend/commands/vacuumlazy.c

index c0b3f6402e6cb63e0d6ab3cdecb5fd612ff449e9..8dcfcd463d8c32199ba11621268753bcb9eb9e77 100644 (file)
@@ -857,8 +857,10 @@ count_nondeletable_pages(Relation onerel, LVRelStats *vacrelstats)
                /*
                 * We don't insert a vacuum delay point here, because we have an
                 * exclusive lock on the table which we want to hold for as short
-                * a time as possible.
+                * a time as possible.  We still need to check for interrupts
+                * however.
                 */
+               CHECK_FOR_INTERRUPTS();
 
                blkno--;