bug? autovacuum is not launched even if autovacuum_freeze_max_age is reached - Mailing list pgsql-hackers

From Fujii Masao
Subject bug? autovacuum is not launched even if autovacuum_freeze_max_age is reached
Date
Msg-id 3f0b79eb1002160134m566f71e4t7685f1a9c947e307@mail.gmail.com
Whole thread Raw
Responses Re: bug? autovacuum is not launched even if autovacuum_freeze_max_age is reached
List pgsql-hackers
Hi,

In HEAD, when autovacuum is disabled, autovacuum process is not
launched forcibly to prevent XID wraparound even if we go through
autovacuum_freeze_max_age. This seems to be because
ShmemVariableCache->xidVacLimit is not initialized (i.e.,
SetTransactionIdLimit() is not called) until VACUUM is performed.

OTOH, in older version, ShmemVariableCache->xidVacLimit is always
initialized when backend updates the flat database file, and then
autovacuum process seems to be launched forcibly as expected.

Is this bug? I guess that it derives from the changes around flag
file done a while ago.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Jan Urbański
Date:
Subject: Re: xpath improvement V2
Next
From: Fujii Masao
Date:
Subject: Re: Streaming replication on win32, still broken