Re: read() returns ERANGE in Mac OS X

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: read() returns ERANGE in Mac OS X
Дата
Msg-id 1CDD0EA0-5534-4801-8C88-96B46D6A96C2@phlo.org
обсуждение исходный текст
Ответ на Re: read() returns ERANGE in Mac OS X  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On May21, 2012, at 20:20 , Tom Lane wrote:
> I wonder whether we should dedicate a buffer status bit to show that
> the buffer has been zeroed by zero_damaged_pages and thus doesn't
> reflect what's on disk.  Then we could teach autovacuum to not overwrite
> such pages.

+1. The idea of us overwriting valid pages because of transient errors sure
is scary.

> On the other hand, such an approach would mean that you
> couldn't use vacuum to forcibly clean up broken pages, so while this
> might be "safer" it's not clear it makes things more useful.

If we're concerned about this, we could always add a separate GUC
fix_damaged_pages which controls whether zero'd pages are written back
or not.

best regards,
Florian Pflug



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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Why is indexonlyscan so darned slow?
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: Bug in new buffering GiST build code