From: Tom Lane <tgl@sss.pgh.pa.us>
To: Doug Y <dylists@ptd.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Relations summary at end of vacuum
Date: Mon, 18 Oct 2004 14:06:52 -0400
Message-ID: <27335.1098122812@sss.pgh.pa.us> (raw)
In-Reply-To: <4173FFCA.4090008@ptd.net>
References: <4173FFCA.4090008@ptd.net>
Doug Y <dylists@ptd.net> writes:
> What exactly are the "Relations" that are referred to in the summary
> at the end of a vacuum?
Tables and indexes.
> I have two DBs that are supposed to be mirrored copies of each other,
> but my relation & page counts are different for each after a vacuum:
IIRC, a relation won't get entered into the free space map at all if
no useful free space is found by VACUUM. So if the only thing that ever
happens on the mirror is insertion of new rows, I could believe that
there would be many fewer active FSM entries than for the master.
However the fact that the database with fewer FSM relations knows about
more free pages within those tables seems a bit at variance with that
idea. Maybe your mirror is insert-only for some tables and not others,
and you've been lax about vacuuming the mirror?
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, dylists@ptd.net
Subject: Re: Relations summary at end of vacuum
In-Reply-To: <27335.1098122812@sss.pgh.pa.us>
References: <4173FFCA.4090008@ptd.net> <27335.1098122812@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