Re: PGSQL Capacity

From: John A Meinel <john(at)arbash-meinel(dot)com>
To: bouchia(dot)nazha(at)free(dot)fr
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: PGSQL Capacity
Date: 2005-05-09 19:40:52
Message-ID: 427FBCC4.5040804@arbash-meinel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

bouchia(dot)nazha(at)free(dot)fr wrote:
> Hello
>
> How can i know a capacity of a pg database ?
> How many records my table can have ?
> I saw in a message that someone have 50 000 records it's possible in a table ?
> (My table have 8 string field (length 32 car)).
> Thanks for your response.
>
>
> Nanou

The capacity for a PG database is just the limit of how much disk space
you have. There are people who have 100 million or even up to a billion
rows in one table. If you are in the billions you have to take some care
about OID wraparound, but at the very least the maximum number of rows
in one table is at least 2Billion.

With 8 string fields and 32 chars each, if they are all filled, you will
take about (32+4)*8 = 324 + overhead bytes each, so I would estimate
about 400 per. If we add a whole lot to be safe, and say 1k per row, you
can fit 1Million rows in 1GB of disk space. There is more taken up by
indexes, etc.

Generally, you are disk limited, not limited by Postgres.

John
=:->

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Dave Held 2005-05-09 19:55:40 Re: PGSQL Capacity
Previous Message Steinar H. Gunderson 2005-05-09 19:32:18 Re: PGSQL Capacity