Re: Relations summary at end of vacuum - Mailing list pgsql-admin

From Tom Lane
Subject Re: Relations summary at end of vacuum
Date
Msg-id 27335.1098122812@sss.pgh.pa.us
Whole thread Raw
In response to Relations summary at end of vacuum  (Doug Y <dylists@ptd.net>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Doug Y
Date:
Subject: Relations summary at end of vacuum
Next
From: Chuming Chen
Date:
Subject: insert a file into remote database