From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nick Fankhauser <nickf@doxpop.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Specific questions about wraparound and vacuum
Date: Wed, 08 Aug 2007 12:34:04 -0400
Message-ID: <2643.1186590844@sss.pgh.pa.us> (raw)
In-Reply-To: <bb2fe60f0708080907x1d8aa6dct5aa3cb1e1ba15897@mail.gmail.com>
References: <bb2fe60f0708080907x1d8aa6dct5aa3cb1e1ba15897@mail.gmail.com>
"Nick Fankhauser" <nickf@doxpop.com> writes:
> 1) Do we need to do a *full* vacuum or just a "lazy" vacuum to take care of
> the xid wraparound issues?
Lazy is sufficient --- as long as it's database-wide including the
system catalogs (which means a superuser has to do it).
> Or... is it the case that by one billion, the docs really mean 2^30
> (1073741824) ?
2^30. You appear to have executed a bit under 600000 transactions since
vacuuming, so if that's three hours then you've got about 5000 hours
until wraparound.
> 4) The documentation implies that I need to vacuum *every* database, even if
> I'm not using them all, so I vacuumed template1, but can't connect to
> template0. Do I really need to vacuum databases where no transactions are
> occurring? If so, how to I deal with template0?
You don't need to touch frozen databases. This was discussed yesterday ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, nickf@doxpop.com
Subject: Re: Specific questions about wraparound and vacuum
In-Reply-To: <2643.1186590844@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox