Re: [HACKERS] pg_freespacemap question

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: [HACKERS] pg_freespacemap question
Дата
Msg-id 441DEA4D.9000804@paradise.net.nz
обсуждение исходный текст
Ответ на Re: [HACKERS] pg_freespacemap question  (Mark Kirkwood <markir@paradise.net.nz>)
Ответы Re: [HACKERS] pg_freespacemap question  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Mark Kirkwood wrote:
> Tom Lane wrote:
>
>>
>> I do notice a rather serious shortcoming of pg_freespacemap in its
>> current incarnation, which is that it *only* shows you the per-page free
>> space data, and not any of the information that would let you determine
>> what the FSM is doing to filter the raw data.  The per-relation
>> avgRequest and lastPageCount fields would be interesting for instance.
>> Perhaps there should be a second view with one row per relation to
>> carry the appropriate data.
>>
>
> Ok - I did wonder about 2 views, but was unsure if the per-relation
> stuff was interesting. Given that it looks like it is interesting, I'll
> see about getting a second view going.
>

This patch implements the second view for FSM relations. I have renamed
the functions and views to be:

pg_freespacemap_relations
pg_freespacemap_pages

This patch depends on the previous one (which was called simply
'pg_freespacemap.patch').

Cheers

Mark

Вложения

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Bonjour registration on Intel Macs is broken
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Pg_buffercache tidy