Re: Visibility map and freezing

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Visibility map and freezing
Date: 2008-12-18 11:21:49
Message-ID: 494A324D.5050707@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:
> Heikki Linnakangas wrote:
>> I think we need a threshold similar to autovacuum_freeze_max_age for
>> manual vacuums as well: vacuum_freeze_max_age. If you run VACUUM, and
>> relfrozenxid is older than vacuum_freeze_max_age, the visibility map
>> is ignored and all pages are scanned.
>
> Would one parameter to control both suffice? (i.e., rename
> autovacuum_freeze_max_age to vacuum_freeze_max_age)

Imagine that you run a nightly VACUUM from cron, and have autovacuum
disabled. If autovacuum_freeze_max_age is the same as
vacuum_freeze_max_age, as soon as that age is reached, an
anti-wraparound autovacuum launched. What we'd want to happen is for the
next nightly VACUUM to do the work instead. So they need to be separate
settings, with some space between them by default.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Anupama Aherrao 2008-12-18 11:44:59 INSERT..SELECT with GENERATE_SERIES returns error.
Previous Message Peter Eisentraut 2008-12-18 10:20:53 Re: Visibility map and freezing