Index size

Поиск
Список
Период
Сортировка
От Ioannis Theoharis
Тема Index size
Дата
Msg-id Pine.GSO.4.58.0503011546140.10218@ourania.ics.forth.gr
обсуждение исходный текст
Ответы Re: Index size  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-general

Hi,

I have created a btree index on a 'int4' attribute of a table.

After i have inserted 1,000,000 raws in my table, i can see that my index
size is 2745 Blocks (8KB each) from pg_class. That means about 21,960 KB
size.

I try to understand hows is this number generated, because thought that
for each new entry in table, there is a new entry in index and that each
entry of the index is:

4 Bytes for the int4 attribute
and
40 Bytes for oid

So 44 * 1,000,000 ~ 42,969 KB

Can anybody inform me where I do the mistake?


В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Problem with pg_hba.conf
Следующее
От: celerity12
Дата:
Сообщение: Problem with pg_hba.conf