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

From Leonardo Francalanci
Subject R: space taken by a row & compressed data
Date
Msg-id KNEFJLENOMMIGOKNCBFAMEHEEMAA.lfrancalanci@simtel.ie
Whole thread Raw
In response to Re: space taken by a row & compressed data  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: R: space taken by a row & compressed data  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: R: space taken by a row & compressed data  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> We have an FAQ item about this.

Damn! I didn't see that one! Sorry...

> Long data values are automatically compressed.

The reason I'm asking is:
we have a system that stores 200,000,000 rows per month
(other tables store 10,000,000 rows per month)
Every row has 400 columns of integers + 2 columns (date+integer) as index.

Our system compresses rows before writing them to a binary file on disk.
Data don't usually need to be updated/removed.
We usually access all columns of a row (hence compression on a per-row basis
makes sense).

Is there any way to compress data on a per-row basis? Maybe with
a User-Defined type?


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: detecting a dead db not seeming to work
Next
From: Bruce Momjian
Date:
Subject: Re: R: space taken by a row & compressed data