pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shaul Dar <shauldar@gmail.com>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Compression in PG
Date: Sun, 1 Nov 2009 18:53:44 +0200
Message-ID: <234efe30911010853k1908b6a6kdb1ebcdbc4c22691@mail.gmail.com> (raw)
In-Reply-To: <dcc563d10911010757o3cededc0x9859ef2c47002919@mail.gmail.com>
References: <234efe30911010651k6cf3d398t9d61e560d57b52b7@mail.gmail.com>
	<162867790911010656m37b315dbp41761a014745b9e4@mail.gmail.com>
	<dcc563d10911010757o3cededc0x9859ef2c47002919@mail.gmail.com>

Guys,

I am aware of the TOAST mechanism (actually complained about it in this
forum...). The text fields I have are below the limits that trigger this
mechanism, and also I may want to compress *specific* fields, not all of
them. And also I have performance concerns as TOAST splits tables and can
potentially cause a performance hit on queries.

My question is if PG can compress smaller text fields e.g 0.5-1KB, or must I
do this outside PG?

-- Shaul

On Sun, Nov 1, 2009 at 5:57 PM, Scott Marlowe <scott.marlowe@gmail.com>wrote:

> On Sun, Nov 1, 2009 at 7:56 AM, Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
> > 2009/11/1 Shaul Dar <shauldar@gmail.com>:
> >> Hi,
> >>
> >> I have several long text fields in my DB that I would love to compress
> >> (descriptions, URLs etc). Can you tell me what options exists in PG
> >> (+pointers please), typical effect on space and run time?
> >
> > Hello
> >
> > You can do nothing. PostgreSQL compresses data automatically
> >
> > http://www.postgresql.org/docs/8.4/interactive/storage-toast.html
>
> Well you can pick a strategy.  But yeah, there's not much for the
> average user to do really.
>

view thread (9+ messages)  latest in thread

Message-ID: <234efe30911010853k1908b6a6kdb1ebcdbc4c22691@mail.gmail.com>
Permalink:  ../234efe30911010853k1908b6a6kdb1ebcdbc4c22691@mail.gmail.com/
Also on:    postgresql.org/message-id/234efe30911010853k1908b6a6kdb1ebcdbc4c22691@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: shauldar@gmail.com, scott.marlowe@gmail.com, pavel.stehule@gmail.com
  Subject: Re: Compression in PG
  In-Reply-To: <234efe30911010853k1908b6a6kdb1ebcdbc4c22691@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox