Re: AutoVacuum Behaviour Question

From: Bruce McAlister <bruce(dot)mcalister(at)blueface(dot)ie>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Subject: Re: AutoVacuum Behaviour Question
Date: 2007-06-27 21:18:37
Message-ID: 4682D42D.6090301@blueface.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Alvaro Herrera wrote:
> Bruce McAlister wrote:
>
> Ok now this is interesting:
>
>> select datname, age(datfrozenxid) from pg_database;
>> datname | age
>> -------------------------+-----------
>> blueface-crm | 441746613
>
> Note this value is 440 million, and you said in your original report that
>
>> autovacuum_freeze_max_age = 200000000
>
> 200 million. So this database is being selected each time because of
> this.
>

Ahhh okay, I didnt know how to extract the age for a database. Learnt
something new here.

> However, what should happen is that after the vacuum the age of the
> database is decreased after the vacuuming. What's your
> vacuum_freeze_min_age setting?
>

My *_freeze_* values are:

autovacuum_freeze_max_age = 200000000
#vacuum_freeze_min_age = 100000000

The vacuum_freeze_min_age is the default at 100 million (I assume).

How much is the age decremented by on a vacuum run then?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tomasz Rakowski 2007-06-27 21:21:29 Re: autovacumm not working ?
Previous Message Richard Broersma Jr 2007-06-27 21:17:48 Re: Checking for a number

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-06-27 21:48:23 Re: AutoVacuum Behaviour Question
Previous Message Alvaro Herrera 2007-06-27 20:21:37 Re: AutoVacuum Behaviour Question