mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Allow free space map vacuuming to be interrupted.
This commit is contained in:
parent
95289e4a58
commit
16e5859cd2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user