From: John A Meinel <john@arbash-meinel.com>
To: bouchia.nazha@free.fr
Cc: pgsql-performance@postgresql.org
Subject: Re: PGSQL Capacity
Date: Mon, 09 May 2005 14:40:52 -0500
Message-ID: <427FBCC4.5040804@arbash-meinel.com> (raw)
In-Reply-To: <1115666560.427fb8803c3a6@imp1-q.free.fr>
References: <1115666560.427fb8803c3a6@imp1-q.free.fr>
bouchia.nazha@free.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
=:->
Attachments:
signature.asc (application/pgp-signature, 250B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: john@arbash-meinel.com, bouchia.nazha@free.fr
Subject: Re: PGSQL Capacity
In-Reply-To: <427FBCC4.5040804@arbash-meinel.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox