Re: Table space grow big - PostgreSQL - Mailing list pgsql-admin

From Brett Parker
Subject Re: Table space grow big - PostgreSQL
Date
Msg-id 20100505114210.GD16616@miranda
Whole thread Raw
In response to Table space grow big - PostgreSQL  (Khangelani Gama <Khangelani.Gama@ucs-software.co.za>)
Responses Re: Table space grow big - PostgreSQL
List pgsql-admin
On 05 May 13:36, Khangelani Gama wrote:
> Hi all
>
>
> Please assist on this scenario, I am a junior DBA, perhaps the
> question I have is too simple please bear with me.
>
> I have a server with one PostgreSQL database and the data reside in
> /usr/local/pgsql/data/ running on Redhat 9 O/S.

<snippage class="lots" />

> The main question I have is: What makes the
> /usr/local/pgsql/data/base/95186722/  grow so big while the actual
> data with its schema is only 2.8G and that is there a way to reduce
> the table space sizes or anything related to that?

OK - what version of postgres would be a good starting question...

But, at a guess, I'd say you have a fair amount of table churn, and that
you're probably due running a VACUUM FULL over the database that is
using the most space, it may fail, but if it does it should tell you
what bit of config you'll need to change to make it work.

The other possible usage of lots of space is indexes on the database
tables, these are not included in the dump, and so the size of the dump
doesn't accurately reflect the size of the on disc data.

Hope that gives you somewhere to start from.

Thanks,
--
Brett Parker

pgsql-admin by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Re: Table space grow big - PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: Ubuntu 10.04 - Cannot Create TCP/IP Sockets