[PATCH] check kernel version for io_method

From: Pierre <pierre(dot)forstmann(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: [PATCH] check kernel version for io_method
Date: 2026-01-13 22:05:29
Message-ID: 17879f12-609b-4730-bfff-6dd11a46d5e6@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Attachment Content-Type Size
0001-patch-check-kernel-version-for-io_method.patch text/x-patch 2.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rustam ALLAKOV 2026-01-13 22:06:04 Re: Add support for EXTRA_REGRESS_OPTS for meson
Previous Message Andres Freund 2026-01-13 21:47:41 Re: Enhancing Memory Context Statistics Reporting