Re: Relpages not being recovered? - Mailing list pgsql-admin

From Adam Singer
Subject Re: Relpages not being recovered?
Date
Msg-id EFDE174C81D5264AA89AB15AEC039A86025A85@epfr01.easyplanet.com
Whole thread Raw
In response to Relpages not being recovered?  ("Adam Singer" <asinger@easyplanet.com>)
List pgsql-admin
Actually, I thought a VACUUM or VACUUM ANALYZE would provide the results I wanted.

After I realized my error, a VACUUM FULL gave me what I needed and problem solved.

Thanks for the help though!

Adam

-----Message d'origine-----
De : Tom Lane [mailto:tgl@sss.pgh.pa.us]
Envoyé : jeudi 5 septembre 2002 18:47
À : Adam Singer
Cc : pgsql-admin@postgresql.org
Objet : Re: [ADMIN] Relpages not being recovered?


"Adam Singer" <asinger@easyplanet.com> writes:
> After deleting unecessary tuples, reindexing, and vacuuming, pg_class gives=
>  the following:

Did you VACUUM FULL, or just VACUUM?

> Does anyone know what may be causing this and if there is a way to force th=
> e relpages column to be recalculated?

I can assure you that relpages is correct after a vacuum --- look at the
physical file for the table if you want to confirm it.

The answer you are probably really looking for is some combination of
more-frequent vacuums and increasing your FSM configuration parameters
so that free space in the table is recycled more effectively.  Try
searching the list archives for "free space map".

            regards, tom lane

pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: turn off auto-commit
Next
From: Tom Lane
Date:
Subject: Re: problems with InitDB under CyqWin