Re: Unexplained Major Vacuum Archive Activity During Vacuum - Mailing list pgsql-general

From Kevin Grittner
Subject Re: Unexplained Major Vacuum Archive Activity During Vacuum
Date
Msg-id 20121101141859.61230@gmx.com
Whole thread Raw
In response to Unexplained Major Vacuum Archive Activity During Vacuum  (Shaun Thomas <sthomas@optionshouse.com>)
Responses Re: Unexplained Major Vacuum Archive Activity During Vacuum
List pgsql-general
Shaun Thomas wrote:

> I don't notice any errors, which just makes this even more strange.
> But after weeks of operating normally, our 10pm manual vacuum job
> generated transaction logs basically equivalent to 3/4 of our
> database, and I can't find any explanation. This amount is about 6x
> higher than usual.
>
> Before I go crazy and tear the box apart, does anyone know of some
> internal change that may cause intermittent marking of pages to
> increase without related database activity?

Yes.

Did you bulk load this data (possibly through restoring pg_dump
output)? If so, and you have not explicitly run VACUUM FREEZE
afterward, the vacuum noticed that it was time to freeze all of these
tuples. When I use pg_dump output to create a database, I always
VACUUM FREEZE ANALYZE immediately afterward -- before I start
archiving.

Just be glad you got it with a manual vacuum during off-peak hours,
rather than having this kick in via autovacuum during peak OLTP load.

> Or did I just vacuum a database with a corrupt CPU or piece of RAM?
> (Let me say again, I see no errors anywhere in the database logs.)

You haven't mentioned anything that should be taken as evidence of
corruption or any unusual behavior on the part of PostgreSQL.

-Kevin


pgsql-general by date:

Previous
From: "Kevin Burton"
Date:
Subject: Re: role does not exist
Next
From: Chris Angelico
Date:
Subject: Re: role does not exist