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/tcop/postgres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 51eb8fabcf2..9ca8b981ee7 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.522 2007/02/10 14:58:55 petere Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.523 2007/02/15 23:23:23 alvherre Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -3139,7 +3139,7 @@ PostgresMain(int argc, char *argv[], const char *username) */ ereport(DEBUG3, (errmsg_internal("InitPostgres"))); - am_superuser = InitPostgres(dbname, username); + am_superuser = InitPostgres(dbname, InvalidOid, username, NULL); SetProcessingMode(NormalProcessing); -- cgit v1.2.3