Re: Why need XLogReadBuffer have the paramter "init"?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why need XLogReadBuffer have the paramter "init"?
Дата
Msg-id 15998.1176303488@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why need XLogReadBuffer have the paramter "init"?  ("Jacky Leng" <lengjianquan@163.com>)
Список pgsql-hackers
"Jacky Leng" <lengjianquan@163.com> writes:
> Cann't we remove this param?

No.

> We can rewrite like this:
> 1.XLogReadBuffer:
>   * remove init;
>   * everytime we cann't read a block, just "log_invalid_page" it, and return
> InvalidBuffer;

Your proposal degrades the robustness of the system by turning non-error
cases into errors.  If the caller is able to rewrite the page fully, we
should not report an error when it's not available to read.
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Vista/IPv6
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Vista/IPv6