Re: Measuring relation free space

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Measuring relation free space
Дата
Msg-id CAJKUy5jzVzt1097v2u_Jk0PuLdgSf3p12WOpXBCKPSw=Gach_w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Measuring relation free space  (Noah Misch <noah@leadboat.com>)
Ответы Re: Measuring relation free space  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
On Wed, Jan 18, 2012 at 7:01 PM, Noah Misch <noah@leadboat.com> wrote:
> On Wed, Jan 18, 2012 at 09:46:20AM -0500, Jaime Casanova wrote:
>>
>> ignoring all non-leaf pages still gives a considerable difference
>> between pgstattuple and relation_free_space()
>
> pgstattuple() counts the single B-tree meta page as always-full, while
> relation_free_space() skips it for all purposes.  For tiny indexes, that can
> shift the percentage dramatically.
>

ok, i will reformulate the question. why is fine ignoring non-leaf
pages but is not fine to ignore the meta page?

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: gistVacuumUpdate
Следующее
От: Kääriäinen Anssi
Дата:
Сообщение: REVIEW: pg_stat_statements with query tree based normalization