Re: Avoiding unnecessary reads in recovery

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Avoiding unnecessary reads in recovery
Дата
Msg-id 463062E0.7070806@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Avoiding unnecessary reads in recovery  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Heikki Linnakangas <heikki@enterprisedb.com> writes:
>> Tom Lane wrote:
>>> but it'd make it safe to use in non-WAL contexts (I think there are
>>> other places where we know we are going to init the page and so a
>>> physical read is a waste of time).
> 
>> Is there? I can't think of any. Extending a relation doesn't count.
> 
> No, but re-using a free page in an index does.  I'm not sure which index
> AMs know for sure the page is free, and which have to read it and check,
> but I think there's at least some scope for that.

B-tree, GIN ans GiST read and check. I'm not sure how hash works. I 
think the latest bitmap index patch doesn't support reusing empty pages 
at all.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Avoiding unnecessary reads in recovery
Следующее
От: Dave Page
Дата:
Сообщение: [Fwd: PGBuildfarm member narwhal Branch HEAD Status changed from OK to InstallCheck failure]