From: Tom Lane Date: Tue, 9 Feb 2010 00:28:57 +0000 (+0000) Subject: Allow free space map vacuuming to be interrupted. X-Git-Tag: REL9_0_ALPHA4~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16e5859cd24d25913134725d97bf5cd23c2e06d2;p=postgresql Allow free space map vacuuming to be interrupted. --- diff --git a/src/backend/storage/freespace/freespace.c b/src/backend/storage/freespace/freespace.c index 2311bcae56..fb7bd7d83f 100644 --- a/src/backend/storage/freespace/freespace.c +++ b/src/backend/storage/freespace/freespace.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.74 2010/01/02 16:57:51 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.75 2010/02/09 00:28:57 tgl Exp $ * * * NOTES: @@ -749,6 +749,8 @@ fsm_vacuum_page(Relation rel, FSMAddress addr, bool *eof_p) { int child_avail; + CHECK_FOR_INTERRUPTS(); + /* After we hit end-of-file, just clear the rest of the slots */ if (!eof) child_avail = fsm_vacuum_page(rel, fsm_get_child(addr, slot), &eof);