| 1 | From 9c4508c7ad7ff47aab001c4d7e996491c2a64d85 Mon Sep 17 00:00:00 2001
|
| 2 | From: Oneric <[email protected]>
|
| 3 | Date: Thu, 22 Jan 2026 00:00:00 +0000
|
| 4 | Subject: [PATCH] Don't run io_uring tests on kernels lacking support
|
| 5 |
|
| 6 | Even if the native Alpine kernel doesn't support io_uring,
|
| 7 | building postgres with uring support enabled may still be
|
| 8 | beneficial for setups where Alpine containers are used
|
| 9 | on a host with a non-Alpine kernel.
|
| 10 | ---
|
| 11 | src/test/modules/test_aio/t/001_aio.pl | 5 ++++-
|
| 12 | 1 file changed, 4 insertions(+), 1 deletion(-)
|
| 13 |
|
| 14 | diff --git a/src/test/modules/test_aio/t/001_aio.pl b/src/test/modules/test_aio/t/001_aio.pl
|
| 15 | index 3f0453619e8..fc64d181480 100644
|
| 16 | |
| 17 | |
| 18 | @@ -125,7 +125,10 @@ sub have_io_uring
|
| 19 | my $methods = $1;
|
| 20 | note "supported io_method values are: $methods";
|
| 21 |
|
| 22 | - return ($methods =~ m/io_uring/) ? 1 : 0;
|
| 23 | + # ensure kernel also offers io_uring syscalls
|
| 24 | + my $res = system_log [qw(grep io_uring_setup /proc/kallsyms)];
|
| 25 | +
|
| 26 | + return ($res == 0 and $methods =~ m/io_uring/) ? 1 : 0;
|
| 27 | }
|
| 28 |
|
| 29 | sub psql_like
|
| 30 | --
|
| 31 | 2.47.3
|
| 32 |
|