diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-09-12 02:05:55 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-09-12 02:05:55 +0000 |
commit | 073164b767f326f16a6c02b95aa63df6f0eb7a9e (patch) | |
tree | 9a11f7adccd0c6fb84db98548075dd6cf1f034b0 | |
parent | 459b26f7279454ceb7208455a5c2388630a2662b (diff) | |
download | postgresql-073164b767f326f16a6c02b95aa63df6f0eb7a9e.tar.gz postgresql-073164b767f326f16a6c02b95aa63df6f0eb7a9e.zip |
Add a CHECK_FOR_INTERRUPTS call in the site where the vacuum delay point
was removed.
-rw-r--r-- | src/backend/commands/vacuumlazy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/commands/vacuumlazy.c b/src/backend/commands/vacuumlazy.c index dd426b4f309..e6f7e654e2c 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.61.2.3 2007/09/10 17:58:56 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.61.2.4 2007/09/12 02:05:55 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -857,8 +857,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--; |