Rearrange vacuum-related bits in PGPROC as a bitmask, to better support
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 24 Oct 2007 20:55:36 +0000 (20:55 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 24 Oct 2007 20:55:36 +0000 (20:55 +0000)
commit745c1b2c2ab8385c8392ff10383a64527e3150b7
tree5131b38db8268f22d6202869e3e7c7ab4fc5056e
parent3ef18797b83b9b274218009802a5994b7f41c818
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.
src/backend/access/transam/twophase.c
src/backend/commands/analyze.c
src/backend/commands/vacuum.c
src/backend/postmaster/autovacuum.c
src/backend/storage/ipc/procarray.c
src/backend/storage/lmgr/proc.c
src/include/storage/proc.h