Re: Billions of records?

Поиск
Список
Период
Сортировка
Искать
От
Shridhar Daithankar
Тема
Re: Billions of records?
Дата
Msg-id
200307152023.00391.shridhar_daithankar@nospam.persistent.co.in
Список
Дерево обсуждения
Billions of records? John Bercik <bercikj@musc.edu>
Re: Billions of records? Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Re: Billions of records? "Jim C. Nasby" <jim@nasby.net>
Re: Billions of records? Tom Lane <tgl@sss.pgh.pa.us>
Re: Billions of records? "Jim C. Nasby" <jim@nasby.net>
Re: Billions of records? Bruce Momjian <pgman@candle.pha.pa.us>
Re: Billions of records? Tom Lane <tgl@sss.pgh.pa.us>
On Tuesday 15 July 2003 20:01, John Bercik wrote:
> Thanks for the reply.  So given my conditions, how many records can PG
> hold?  I got the 16TB from the limitations page but I don't see how to
> calculate how many records I can hold.

OK. Let's calculate. You have 50 fields of 20 char each. So each field would 
go for 24 bytes at least assuming a 4 byte integer for length.

So a tuple size is 50*24+28=1228 bytes. So in a page of 8KB, you would get 6 
tuples.

In 16TB you can accomodate, 2GB pages. So you can accomodate around 12 billion 
tuples for your table schema.

If you get true char types, that would accomodate  7 tuples per page. So you 
could get around 14 billion tuples in there.

HTH

BTW How much data you actually have?

 Shridhar

В списке pgsql-general по дате отправления
От: Martijn van Oosterhout
Дата:
От: scott.marlowe
Дата:
Сообщение: Re: Firebird vrs Postgresql
FAQ