X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4AD945321A for ; Mon, 9 May 2005 16:41:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79295-07 for ; Mon, 9 May 2005 19:40:59 +0000 (GMT) Received: from server07.icaen.uiowa.edu (server07.icaen.uiowa.edu [128.255.17.47]) by svr1.postgresql.org (Postfix) with ESMTP id E2CF653E4D for ; Mon, 9 May 2005 16:40:58 -0300 (ADT) Received: from server11.icaen.uiowa.edu (server11.icaen.uiowa.edu [128.255.17.51]) by server07.icaen.uiowa.edu (8.13.3/8.12.9) with ESMTP id j49JewZb018927; (envelope-from ) Mon, 9 May 2005 14:40:58 -0500 (CDT) Received: from [192.168.1.11] (12-215-118-172.client.mchsi.com [12.215.118.172]) (authenticated user=jfmeinel) by server11.icaen.uiowa.edu (8.13.2/smtp-serv-1.7) with ESMTP id j49JetlQ026039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256); (envelope-from ) Mon, 9 May 2005 14:40:57 -0500 (CDT) Message-ID: <427FBCC4.5040804@arbash-meinel.com> Date: Mon, 09 May 2005 14:40:52 -0500 From: John A Meinel User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: bouchia.nazha@free.fr Cc: pgsql-performance@postgresql.org Subject: Re: PGSQL Capacity References: <1115666560.427fb8803c3a6@imp1-q.free.fr> In-Reply-To: <1115666560.427fb8803c3a6@imp1-q.free.fr> X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig860B003DEB6DBBCB26A9D3A9" X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamav.icaen.uiowa.edu X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/118 X-Sequence-Number: 12282 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig860B003DEB6DBBCB26A9D3A9 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 =:-> --------------enig860B003DEB6DBBCB26A9D3A9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFCf7zGJdeBCYSNAAMRAp0gAJ4wF8T1e9xUKWY1txDG2phopwfpIQCgkcl7 2A/4mWE+ZYQxJXJRbn9utRM= =iLUJ -----END PGP SIGNATURE----- --------------enig860B003DEB6DBBCB26A9D3A9--