mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Arrange for autovacuum to be killed when another operation wants to be alone
accessing it, like DROP DATABASE. This allows the regression tests to pass with autovacuum enabled, which open the gates for finally enabling autovacuum by default.
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.507 2007/01/05 22:19:36 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.508 2007/01/16 13:28:56 alvherre Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@ -3298,6 +3298,10 @@ SubPostmasterMain(int argc, char *argv[])
|
||||
strcmp(argv[1], "--forkboot") == 0)
|
||||
PGSharedMemoryReAttach();
|
||||
|
||||
/* autovacuum needs this set before calling InitProcess */
|
||||
if (strcmp(argv[1], "--forkautovac") == 0)
|
||||
AutovacuumIAm();
|
||||
|
||||
/*
|
||||
* Start our win32 signal implementation. This has to be done after we
|
||||
* read the backend variables, because we need to pick up the signal pipe
|
||||
|
Reference in New Issue
Block a user