aio: Add test_aio module
Andres Freund <andres@anarazel.de>
aio: Add test_aio module To make the tests possible, a few functions from bufmgr.c/localbuf.c had to be exported, via buf_internals.h. Reviewed-by: Noah Misch <noah@leadboat.com> Co-authored-by: Andres Freund <andres@anarazel.de> Co-authored-by: Nazir Bilal Yavuz <byavuz81@gmail.com> Discussion: https://postgr.es/m/uvrtrknj4kdytuboidbhwclo4gxhswwcpgadptsjvjqcluzmah%40brqs62irg4dt
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/bufmgr.c | modified | +2 −6 |
| src/backend/storage/buffer/localbuf.c | modified | +1 −2 |
| src/include/storage/buf_internals.h | modified | +7 −0 |
| src/test/modules/Makefile | modified | +1 −0 |
| src/test/modules/meson.build | modified | +1 −0 |
| src/test/modules/test_aio/.gitignore | added | +2 −0 |
| src/test/modules/test_aio/Makefile | added | +26 −0 |
| src/test/modules/test_aio/meson.build | added | +37 −0 |
| src/test/modules/test_aio/t/001_aio.pl | added | +1503 −0 |
| src/test/modules/test_aio/t/002_io_workers.pl | added | +125 −0 |
| src/test/modules/test_aio/test_aio--1.0.sql | added | +108 −0 |
| src/test/modules/test_aio/test_aio.c | added | +806 −0 |
| src/test/modules/test_aio/test_aio.control | added | +3 −0 |
Discussion
- AIO v2.0 213 messages · 2024-09-01 → 2025-07-29