diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-10-24 20:55:36 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2007-10-24 20:55:36 +0000 |
commit | 745c1b2c2ab8385c8392ff10383a64527e3150b7 (patch) | |
tree | 5131b38db8268f22d6202869e3e7c7ab4fc5056e /src/backend/access/transam | |
parent | 3ef18797b83b9b274218009802a5994b7f41c818 (diff) |
Rearrange vacuum-related bits in PGPROC as a bitmask, to better support
having several of them. Add two more flags: whether the process is
executing an ANALYZE, and whether a vacuum is for Xid wraparound (which
is obviously only set by autovacuum).
Sneakily move the worker's recently-acquired PostAuthDelay to a more useful
place.
Diffstat (limited to 'src/backend/access/transam')
-rw-r--r-- | src/backend/access/transam/twophase.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/access/transam/twophase.c b/src/backend/access/transam/twophase.c index ae2b8dcd695..6ce9d1b5864 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.36 2007/09/21 16:32:19 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.37 2007/10/24 20:55:36 alvherre Exp $ * * NOTES * Each global transaction is associated with a global transaction @@ -283,8 +283,7 @@ MarkAsPreparing(TransactionId xid, const char *gid, gxact->proc.databaseId = databaseid; gxact->proc.roleId = owner; gxact->proc.inCommit = false; - gxact->proc.inVacuum = false; - gxact->proc.isAutovacuum = false; + gxact->proc.vacuumFlags = 0; gxact->proc.lwWaiting = false; gxact->proc.lwExclusive = false; gxact->proc.lwWaitLink = NULL; |