Re: Is it possible to compress a table any further? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Is it possible to compress a table any further?
Date
Msg-id 20070216144518.GB44536@winnie.fuhr.org
Whole thread Raw
In response to Is it possible to compress a table any further?  (vanessa <vanessaknell@gmail.com>)
List pgsql-general
On Thu, Feb 15, 2007 at 10:04:44PM -0800, vanessa wrote:
> I have very large database that is in postgresql and in particular one
> table that take up too much space.

How are you determining what "too much space" is?  How are you
measuring how much space the table takes up, how much space are you
expecting it to take up, and how did you arrive at that expectation?

> I know that in mysql one can compress individual tables with
> isam-compression. I understand that postgresql compresses text
> automatically, is there anyway to compress my large table any
> further?

Let's understand the problem before looking for a solution.  What's
the table definition?  How many rows are in the table?  How much
physical space does the table take up?  How many indexes does the
table have?

One situation that can cause table bloat is not vacuuming enough.
How often are you vacuuming the table?  Does it receive a lot of
updates and/or deletes?  Have you done a full-database VACUUM VERBOSE
to see if your free space map settings need to be adjusted?  What
version of PostgreSQL are you running?

--
Michael Fuhr

pgsql-general by date:

Previous
From: Bjørn T Johansen
Date:
Subject: Re: Problem writing sql statement....
Next
From: "MG"
Date:
Subject: Re: WARNING: some databases have not been vacuumed in 1953945422 transactions