Re: heap_page_prune comments

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: heap_page_prune comments
Дата
Msg-id CA+TgmoYLBcUgqqdE=sMKwcf5ZCsSsrcPGO8fpjGBKv_TPKdv6w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: heap_page_prune comments  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: heap_page_prune comments  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Nov 4, 2011 at 10:46 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> Seems a little hackish, though: we'd be reporting an amount of
>> freespace that we've deliberately set to an incorrect value.  I'm
>> almost thinking we should report the freespace that's actually
>> available, on the theory that Bload Is Bad (TM).
>
> IIRC, this code is following the very longstanding precedent of
> RelationGetBufferForTuple.

I don't understand the analogy - that function isn't freeing any
space, just searching for a block that already has some.  And it does
update the free space map if the free space map is found to be out of
date, whereas this function does not.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Show statistics target in \d+
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: IDLE in transaction introspection