Rearrange vacuum-related bits in PGPROC as a bitmask, to better support
Alvaro Herrera <alvherre@alvh.no-ip.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/twophase.c | modified | +2 −3 |
| src/backend/commands/analyze.c | modified | +15 −1 |
| src/backend/commands/vacuum.c | modified | +10 −8 |
| src/backend/postmaster/autovacuum.c | modified | +39 −12 |
| src/backend/storage/ipc/procarray.c | modified | +14 −9 |
| src/backend/storage/lmgr/proc.c | modified | +6 −5 |
| src/include/storage/proc.h | modified | +11 −3 |