summaryrefslogtreecommitdiff
path: root/src/include/storage/aio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/storage/aio.h')
-rw-r--r--src/include/storage/aio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/storage/aio.h b/src/include/storage/aio.h
index 25da0a31d18..cc987556e14 100644
--- a/src/include/storage/aio.h
+++ b/src/include/storage/aio.h
@@ -22,12 +22,20 @@
#include "storage/procnumber.h"
+/* io_uring is incompatible with EXEC_BACKEND */
+#if defined(USE_LIBURING) && !defined(EXEC_BACKEND)
+#define IOMETHOD_IO_URING_ENABLED
+#endif
+
/* Enum for io_method GUC. */
typedef enum IoMethod
{
IOMETHOD_SYNC = 0,
IOMETHOD_WORKER,
+#ifdef IOMETHOD_IO_URING_ENABLED
+ IOMETHOD_IO_URING,
+#endif
} IoMethod;
/* We'll default to worker based execution. */