[PATCH] check kernel version for io_method

pierre.forstmann@gmail.com

From: Pierre <pierre.forstmann@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2026-01-13T22:05:29Z
Lists: pgsql-hackers

Attachments

Hello,


Please find a patch proposal for bug BUG #19369: Not documented that 
io_uring on kernel versions between 5.1 and below 5.6 does not work.

This is not  a document patch but code patch using a GUC hook to :

- check liburing setup

- check kernel version

to allow/disallow io_method=io_uring


I have made successfull tests on:

- Alma Linux 9.7/ kernel 5.14 without liburing setup

- Debian 12 / kernel 6.1 with liburing-dev


NB:

This is my first patch and I apologize if it is not fully compliant with 
patching rules.


Thanks.