Re: [PATCH] check kernel version for io_method

Поиск
Список
Период
Сортировка
Искать
От
Andreas Karlsson
Тема
Re: [PATCH] check kernel version for io_method
Дата
в 10:27:07
Msg-id
13f98612-9f3a-4604-8df9-a3406a10def8@proxel.se
Ответ на
Список
Дерево обсуждения
[PATCH] check kernel version for io_method Pierre <pierre.forstmann@gmail.com>
Re: [PATCH] check kernel version for io_method Andreas Karlsson <andreas@proxel.se>
Re: [PATCH] check kernel version for io_method Steven Niu <niushiji@gmail.com>
Re: [PATCH] check kernel version for io_method Jakub Wartak <jakub.wartak@enterprisedb.com>
Re: [PATCH] check kernel version for io_method Andreas Karlsson <andreas@proxel.se>
Re: [PATCH] check kernel version for io_method Andreas Karlsson <andreas@proxel.se>
Re: [PATCH] check kernel version for io_method Steven Niu <niushiji@gmail.com>
Re: [PATCH] check kernel version for io_method Andreas Karlsson <andreas@proxel.se>
Re: [PATCH] check kernel version for io_method Steven Niu <niushiji@gmail.com>
Re: [PATCH] check kernel version for io_method Pierre <pierre.forstmann@gmail.com>
Re: [PATCH] check kernel version for io_method Pierre Forstmann <pierre.forstmann@gmail.com>
On 1/14/26 8:22 AM, Steven Niu wrote:
> I agree that you are correct for now. But in future, the IoMethod may have new member. Then we have to process it.
> 
> How about change to like this:
>   + #else
>   +     if (*newval == IOMETHOD_IO_URING)
>   +     {
>   +             GUC_check_errdetail("io_uring not enabled.");
>   +             return false;
>   +     }

No, that would be incorrect. It would not even compile. 
IOMETHOD_IO_URING is not even defined if we do not compile with liburing 
enabled. You can try it out yourself by compiling PostgreSQL without 
io_uring support and then try to enable it. You will get an error and 
that code will never be reached.

Andreas



В списке pgsql-hackers по дате отправления
От: Steven Niu
Дата:
От: Steven Niu
Дата:
FAQ