Re: [PATCHES] pg_freespacemap question

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: [PATCHES] pg_freespacemap question
Дата
Msg-id 4414F6EC.7010909@paradise.net.nz
обсуждение исходный текст
Ответ на Re: [PATCHES] pg_freespacemap question  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: [PATCHES] pg_freespacemap question  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Christopher Kings-Lynne wrote:
>> The point here is that if tuples require 50 bytes, and there are 20
>> bytes free on a page, pgstattuple counts 20 free bytes while FSM
>> ignores the page.  Recording that space in the FSM will not improve
>> matters, it'll just risk pushing out FSM records for pages that do
>> have useful amounts of free space.
>
>
>
> Maybe an overloaded pgstattuple function that allows you to request FSM
> behavior?
>

That's a nice idea - could also do equivalently by adding an extra
column "usable_free_space" or some such, and calculating this using FSM
logic.

Cheers

Mark


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: [PATCHES] pg_freespacemap question
Следующее
От: Neil Conway
Дата:
Сообщение: Re: Proposal for updatable views