Re: pg_freespacemap question

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pg_freespacemap question
Дата
Msg-id 20060307234924.GA9838@surnet.cl
обсуждение исходный текст
Ответ на Re: pg_freespacemap question  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Список pgsql-hackers
Tatsuo Ishii wrote:

> Just for curiousity, why FSM gathers info for indexes? I thought FSM
> is only good for tables.

It's part of the implementation of the page-recycling algorithm for
btrees Tom did for 7.4.  When a btree page is empty after a vacuum, it's
entered in the free space map.  When a page is split, the new page is
taken from the FSM (or the relation is extended if there isn't any.)

That's why the bytes-free number is zero: when a btree page makes it
into the FSM, we are sure it's completely empty.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: pg_freespacemap question
Следующее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: Merge algorithms for large numbers of "tapes"