summaryrefslogtreecommitdiff
path: root/src/backend/commands/vacuumlazy.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2007-09-12 02:05:36 +0000
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2007-09-12 02:05:36 +0000
commitd41c420e3b3a728b6df5796f53d0fd0d578891b9 (patch)
treed14f5d28797f4e5738427f2339d1ed613032f68d /src/backend/commands/vacuumlazy.c
parentba438dfccd2e1059fd29508c5c60dd72a2a771fc (diff)
Add a CHECK_FOR_INTERRUPTS call in the site where the vacuum delay point
was removed.
Diffstat (limited to 'src/backend/commands/vacuumlazy.c')
-rw-r--r--src/backend/commands/vacuumlazy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c
index 06cea9a812c..e26b592445f 100644
--- a/src/backend/commands/vacuumlazy.c
+++ b/src/backend/commands/vacuumlazy.c
@@ -36,7 +36,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.81.2.1 2007/09/10 17:58:50 alvherre Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.81.2.2 2007/09/12 02:05:36 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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--;