Re: Unexplained Major Vacuum Archive Activity During Vacuum

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: Alban Hertroys <haramrae(at)gmail(dot)com>, sthomas(at)optionshouse(dot)com, Kevin Grittner <kgrittn(at)mail(dot)com>
Subject: Re: Unexplained Major Vacuum Archive Activity During Vacuum
Date: 2012-11-03 16:46:43
Message-ID: 201211031746.44727.andres@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, November 01, 2012 05:40:23 PM Alban Hertroys wrote:
> On 1 November 2012 17:19, Shaun Thomas <sthomas(at)optionshouse(dot)com> wrote:
> > On 11/01/2012 10:28 AM, Kevin Grittner wrote:
> > Based on my past experience with 8.2, and my understanding of 9.1, I
> > moved autovacuum_freeze_max_age up to 650M so we'd never get a mid-day
> > freeze. And the default for vacuum_freeze_table_age is 150M, which I
> > hadn't changed.
>
> Instead of attempting to postpone freeze until beyond the life
> expectancy of our universe, what you probably should have done is
> vacuum more often so that vacuum has less work to do.

Thats not really possible with freeze vacuums. When the table is older than
the applicable freeze age its scanned completely instead of only the parts
that are sensible according to the vacuum map. The more expensive scans really
only happen when they make sense...

Andres
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2012-11-03 23:08:59 Server to run Postgresql
Previous Message Igor Romanchenko 2012-11-03 14:01:38 Re: Update latest column in master table from transaction table