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)
commit05c34431f0ab7e68362f43b67b15c0c26946f974
treec297aa67669399e05c5973f5bf5b49f84265dfa6
parentfb4fa46cb3a3de5f80ac73d335724540820b8c43
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