postgres.git / summary / log / commit / refs
commit 9588e1bd651a12c0986d987235ccc22eba928c68
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Wed Sep 12 02:05:48 2007 +0000
First released in: 8.3.0, 8.0.14, 8.1.10, 8.2.5
Add a CHECK_FOR_INTERRUPTS call in the site where the vacuum delay point
was removed.
src/backend/commands/vacuumlazy.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c
index f9167699fa2..0552c3e0ae5 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.93 2007/09/10 21:40:03 alvherre Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.94 2007/09/12 02:05:48 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@@ -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--;
[parent: 861f7357b9af]