Re: space taken by a row & compressed data

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Leonardo Francalanci <lfrancalanci(at)simtel(dot)ie>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: space taken by a row & compressed data
Date: 2004-08-26 15:05:15
Message-ID: 200408261505.i7QF5FR26375@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Leonardo Francalanci wrote:
> With mysql I know how much space a row will take, based on the datatype
> of it columns. I also (approximately) know the size of indexes.
> Is there a way to know that in postgresql?

We have an FAQ item about this.

> Is there a way to pack (compress) data, as with myisampack for mysql?

Long data values are automatically compressed.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Wilson 2004-08-26 15:08:55 Re: Substring RegExp Extract path
Previous Message Tom Lane 2004-08-26 14:57:59 Re: detecting a dead db not seeming to work