Re: space taken by a row & compressed data - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: space taken by a row & compressed data
Date
Msg-id 1093533221.1520.62.camel@Andrea.peacock.de
Whole thread Raw
In response to space taken by a row & compressed data  ("Leonardo Francalanci" <lfrancalanci@simtel.ie>)
List pgsql-general
Hi Leonardo,

Am Do, den 26.08.2004 schrieb Leonardo Francalanci um 15:51:
> 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?
>
> Is there a way to pack (compress) data, as with myisampack for mysql?

in the contrib dir you will find something (dbsize or so)
to check for sizes of objects (at least tables)

Due to the MVCC you happen to have multiple versions
of an updated row at the same time so the numbers arent
very exact all the time.

Large objects such as text columns are stored in compressed
form already.

HTH
Tino Wildenhain


pgsql-general by date:

Previous
From: "Jim Wilson"
Date:
Subject: Re: Substring RegExp Extract path
Next
From: Tom Lane
Date:
Subject: Re: detecting a dead db not seeming to work