diff options
| author | Alvaro Herrera | 2007-02-15 23:23:23 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2007-02-15 23:23:23 +0000 |
| commit | 182065093420b667a850828c3241ffe940df1aa4 (patch) | |
| tree | 14a1fa8acdaf45cdc11e760e961bd4f91b1c20c4 /src/backend/access | |
| parent | eecbb33267642a2f6fcb2a2652f55412b333f4df (diff) | |
Restructure autovacuum in two processes: a dummy process, which runs
continuously, and requests vacuum runs of "autovacuum workers" to postmaster.
The workers do the actual vacuum work. This allows for future improvements,
like allowing multiple autovacuum jobs running in parallel.
For now, the code keeps the original behavior of having a single autovac
process at any time by sleeping until the previous worker has finished.
Diffstat (limited to 'src/backend/access')
| -rw-r--r-- | src/backend/access/transam/varsup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/varsup.c b/src/backend/access/transam/varsup.c index 76865d97523..c9754581ec7 100644 --- a/src/backend/access/transam/varsup.c +++ b/src/backend/access/transam/varsup.c @@ -6,7 +6,7 @@ * Copyright (c) 2000-2007, PostgreSQL Global Development Group * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/transam/varsup.c,v 1.77 2007/01/05 22:19:23 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/varsup.c,v 1.78 2007/02/15 23:23:22 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -72,7 +72,7 @@ GetNewTransactionId(bool isSubXact) * still gives plenty of chances before we get into real trouble. */ if (IsUnderPostmaster && (xid % 65536) == 0) - SendPostmasterSignal(PMSIGNAL_START_AUTOVAC); + SendPostmasterSignal(PMSIGNAL_START_AUTOVAC_LAUNCHER); if (IsUnderPostmaster && TransactionIdFollowsOrEquals(xid, ShmemVariableCache->xidStopLimit)) @@ -286,7 +286,7 @@ SetTransactionIdLimit(TransactionId oldest_datfrozenxid, */ if (TransactionIdFollowsOrEquals(curXid, xidVacLimit) && IsUnderPostmaster) - SendPostmasterSignal(PMSIGNAL_START_AUTOVAC); + SendPostmasterSignal(PMSIGNAL_START_AUTOVAC_LAUNCHER); /* Give an immediate warning if past the wrap warn point */ if (TransactionIdFollowsOrEquals(curXid, xidWarnLimit)) |
