diff options
| author | Alvaro Herrera | 2007-01-16 13:28:57 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2007-01-16 13:28:57 +0000 |
| commit | eb63cc3da82cec03c54a9534a6c91d287078abd1 (patch) | |
| tree | a8181fbd037cc02c1eeb68202b8632b20f536665 /src/backend/access | |
| parent | 02609893da8cac7689ec5173bc7d815e6f27ad2e (diff) | |
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.
Diffstat (limited to 'src/backend/access')
| -rw-r--r-- | src/backend/access/transam/twophase.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index 4026daa54a2..45220d11964 100644 --- a/src/backend/access/transam/twophase.c +++ b/src/backend/access/transam/twophase.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.26 2007/01/05 22:19:23 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.27 2007/01/16 13:28:56 alvherre Exp $ * * NOTES * Each global transaction is associated with a global transaction @@ -280,6 +280,7 @@ MarkAsPreparing(TransactionId xid, const char *gid, gxact->proc.databaseId = databaseid; gxact->proc.roleId = owner; gxact->proc.inVacuum = false; + gxact->proc.isAutovacuum = false; gxact->proc.lwWaiting = false; gxact->proc.lwExclusive = false; gxact->proc.lwWaitLink = NULL; |
