aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2007-09-12 02:05:53 +0000
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2007-09-12 02:05:53 +0000
commitd48f8ab8e19fe390d0be69418772ba1eae9ae8cf (patch)
treee44aeed1d9983cc087894e0f047fe0a18a83dc14 /src
parent6f3727c5e767125c405c5df0ccb0ee59e7876feb (diff)
downloadpostgresql-d48f8ab8e19fe390d0be69418772ba1eae9ae8cf.tar.gz
postgresql-d48f8ab8e19fe390d0be69418772ba1eae9ae8cf.zip
Add a CHECK_FOR_INTERRUPTS call in the site where the vacuum delay point
was removed.
Diffstat (limited to 'src')
-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 182c0e46379..37d3fadacc4 100644
--- a/src/backend/commands/vacuumlazy.c
+++ b/src/backend/commands/vacuumlazy.c
@@ -31,7 +31,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.50.4.3 2007/09/10 17:59:03 alvherre Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.50.4.4 2007/09/12 02:05:53 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@@ -866,8 +866,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--;