Re: Billions of records? - Mailing list pgsql-general

From Shridhar Daithankar
Subject Re: Billions of records?
Date
Msg-id 200307151953.37536.shridhar_daithankar@nospam.persistent.co.in
Whole thread Raw
In response to Billions of records?  (John Bercik <bercikj@musc.edu>)
Responses Re: Billions of records?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Billions of records?  ("Jim C. Nasby" <jim@nasby.net>)
List pgsql-general
On Tuesday 15 July 2003 19:15, John Bercik wrote:
> Hi,
>
> Can anyone tell me what the limitations are regarding records?
> Say I have a table with 50 fields of 20 characters each.  If a table can
> be 16 TB, how many records can it hold?

Each tuple in postgresql has around 28 bytes of overhead. Index tuple has 12
bytes. Besides varchar would include additional overhead. And char won't be
true char because it always stores length of string. Although I have
specialised char types developed by some kind hackers which are true chars.

Other than that there is no limit on size of table.  Check this
http://www.postgresql.org/docs/faqs/FAQ.html#4.5

BTW, is it coincidence that your figure of 16TB matches the limit there?

> If you all have any other size benchmarks or such please include it.  Is
> PG ready for huge db's?  How big is the biggest known?

I have had references of databases as big as 300GB. People routinely have more
than 10GB databases. You can dig archives for the same.

HTH

 Shridhar


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Large Objects in serializable transaction question
Next
From: "Robert J. Sanford, Jr."
Date:
Subject: Re: Are you frustrated with PostgreSQL