Re: improving basebackup.c's file-reading code

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: improving basebackup.c's file-reading code
Дата
Msg-id CA+TgmoYLV7Dm7Yr6yXRF09kW1SK3AJEYTFkgj2qwZCJduyn5WA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: improving basebackup.c's file-reading code  (Hamid Akhtar <hamid.akhtar@gmail.com>)
Ответы Re: improving basebackup.c's file-reading code  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On Wed, Apr 29, 2020 at 5:52 AM Hamid Akhtar <hamid.akhtar@gmail.com> wrote:
> The idea and the patch looks good to me.
>
> It makes sense to change fread to basebackup_read_file which internally calls pg_pread which is a portable function
asopposed to read. As you've mentioned, this is much better for error handling.
 

Thanks for the review. I have now committed the patch, after rebasing
and adjusting one comment slightly.

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



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

Предыдущее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: [patch] demote
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [Patch] ALTER SYSTEM READ ONLY