diff options
author | Robert Haas | 2011-02-08 03:04:29 +0000 |
---|---|---|
committer | Robert Haas | 2011-02-08 03:04:29 +0000 |
commit | 32896c40ca766146312b28a5a0eb3f66ca0300ed (patch) | |
tree | 88596b8de0a3d0f57beaf994ff8ace6eda6fd9ba /src/backend/commands/functioncmds.c | |
parent | 47082fa875179ae629edb26807ab3f38a775280b (diff) |
Avoid having autovacuum workers wait for relation locks.
Waiting for relation locks can lead to starvation - it pins down an
autovacuum worker for as long as the lock is held. But if we're doing
an anti-wraparound vacuum, then we still wait; maintenance can no longer
be put off.
To assist with troubleshooting, if log_autovacuum_min_duration >= 0,
we log whenever an autovacuum or autoanalyze is skipped for this reason.
Per a gripe by Josh Berkus, and ensuing discussion.
Diffstat (limited to 'src/backend/commands/functioncmds.c')
0 files changed, 0 insertions, 0 deletions