Re: forcing compression of text field - Mailing list pgsql-general

From Jeff Davis
Subject Re: forcing compression of text field
Date
Msg-id 1165878043.13508.10.camel@dogma.v10.wvs
Whole thread Raw
In response to forcing compression of text field  ("Jonathan Ellis" <jonathan@utahpython.org>)
List pgsql-general
On Mon, 2006-12-11 at 09:18 -0700, Jonathan Ellis wrote:
> I have a table of log messages.  They are mostly in the 100-200
> character length, which apparently isn't large enough for PG to want
> to compress it (length == octet_length).  I really need to save disk
> space.  I can store it as a bytea and compress it manually (zlib level
> 1 compression gives about 50% savings), but is there a way to force
> pg's own compression before I resort to this?
>

Are you sure PostgreSQL isn't compressing it? I didn't think there was a
minimum threshold for compression.

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: concatenation operator || with "null" array
Next
From: "philip johnson"
Date:
Subject: Re: tsearch2 and pdf files