From 182065093420b667a850828c3241ffe940df1aa4 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 15 Feb 2007 23:23:23 +0000 Subject: 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. --- src/backend/bootstrap/bootstrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/bootstrap') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index be4a219ef0a..6e6efe744ba 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.230 2007/02/10 14:58:54 petere Exp $ + * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.231 2007/02/15 23:23:22 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -449,7 +449,7 @@ BootstrapMain(int argc, char *argv[]) * Do backend-like initialization for bootstrap mode */ InitProcess(); - (void) InitPostgres(dbname, NULL); + (void) InitPostgres(dbname, InvalidOid, NULL, NULL); /* * In NOP mode, all we really want to do is create shared memory and -- cgit v1.2.3