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

src/backend/commands/vacuumlazy.c

index 487395de80369ffdd8df4539e7e5b0cfc6648d60..509214605acfba950bc84212c41a980c8a02e780 100644 (file)
@@ -830,8 +830,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--;