Re: Do away with zero-padding assumption before WALRead()

Поиск
Список
Период
Сортировка
От Kyotaro Horiguchi
Тема Re: Do away with zero-padding assumption before WALRead()
Дата
Msg-id 20240219.120241.1111838466302022974.horikyota.ntt@gmail.com
обсуждение исходный текст
Ответ на Re: Do away with zero-padding assumption before WALRead()  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Список pgsql-hackers
At Mon, 19 Feb 2024 11:56:22 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in 
> Yeah, perhaps I was overly concerned. The removed comment made me
> think that someone could add code relying on the incorrect assumption
> that the remaining bytes beyond the returned count are cleared out. On
> the flip side, SimpleXLogPageRead always reads a whole page and
> returns XLOG_BLCKSZ. However, as you know, the returned buffer doesn't
> contain random garbage bytes. Therefore, it's safe as long as the

Forgot to mention that there is a case involving non-initialized
pages, but it doesn't affect the correctness of the description you
pointed out.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: Do away with zero-padding assumption before WALRead()
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Returning non-terminated string in ECPG Informix-compatible function