Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

Next:From: Dave HeldDate: 2005-05-09 19:55:40
Subject: Re: PGSQL Capacity
Previous:From: Steinar H. GundersonDate: 2005-05-09 19:32:18
Subject: Re: PGSQL Capacity

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group