Re: Why are tables sizes so big?

From: Richard Huxton <dev(at)archonet(dot)com>
To: silicontao_roy(at)technologist(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Why are tables sizes so big?
Date: 2001-03-07 07:24:48
Message-ID: 3AA5E240.FD449F78@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

God_Of_Pain wrote:
>
> I have a Win32 app connecting to a PostgreSQL server via Delphi -> BDE ->
> ODBC -> PostgreSQL. The app takes CSV files and stores them on the
> PostgreSQL server. An empty CSV file makes a table that is 8kB in size on
> the server and that is fine but for every 1kB of text in the CSV file the
> PostgreSQL file gains about 5kB.
>
> The CSV file has 5 text fields that I change to char size 10, float, float,
> int and float. That in it's self sould make the data on the server much
> smaller, but it is not, it is bigger, why?

char = 10 + 4
floats= 8 * 3
int = 4
oid = 4

That's at least 46 bytes per row plus indexes - which can take up a lot.
Does that look plausible?

- Richard Huxton

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eric G. Miller 2001-03-07 08:05:45 Re: Undefined symbol
Previous Message will trillich 2001-03-07 05:26:25 need general optimization advice