Add a CHECK_FOR_INTERRUPTS call in the site where the vacuum delay point
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 Sep 2007 02:05:55 +0000 (02:05 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 Sep 2007 02:05:55 +0000 (02:05 +0000)
was removed.

src/backend/commands/vacuumlazy.c

index fc9497b4732fc7466a7db4d1f8d8b6e936329b1b..22d7fea211d16bb4e5433e0bd30b277770440042 100644 (file)
@@ -870,8 +870,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--;