Text of doxygen.postgresql.org › method__sync_8c_source.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

PostgreSQL Source Code: src/backend/storage/aio/method_sync.c Source File

PostgreSQL Source Code git master Loading... Searching... No Matches method_sync.c Go to the documentation of this file. 1 /*------------------------------------------------------------------------- 2 * 3 * method_sync.c 4 * AIO - perform "AIO" by executing it synchronously 5 * 6 * This method is mainly to check if AIO use causes regressions. Other IO 7 * methods might also fall back to the synchronous method for functionality 8 * they cannot provide.

9 * 10 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group 11 * Portions Copyright (c) 1994, Regents of the University of California 12 * 13 * IDENTIFICATION 14 * src/backend/storage/aio/method_sync.c 15 * 16 *------------------------------------------------------------------------- 17 */ 18 19 #include " postgres.h " 20 21 #include " storage/aio.h " 22 #include " storage/aio_internal.h " 23 24 static bool pgaio_sync_needs_synchronous_execution ( PgAioHandle * ioh ); 25 static int pgaio_sync_submit ( uint16 num_staged_ios, PgAioHandle **staged_ios); 26 27 28 const IoMethodOps pgaio_sync_ops = { 29 . needs_synchronous_execution = pgaio_sync_needs_synchronous_execution , 30 .submit = pgaio_sync_submit , 31 }; 32 33 34 35 static bool 36 pgaio_sync_needs_synchronous_execution ( PgAioHandle * ioh ) 37 { 38 return true ; 39 } 40 41 static int 42 pgaio_sync_submit ( uint16 num_staged_ios, PgAioHandle **staged_ios) 43 { 44 elog ( ERROR , "IO should have been executed synchronously" ); 45 46 return 0; 47 } aio.h aio_internal.h uint16 uint16_t uint16 Definition c.h:682 ERROR #define ERROR Definition elog.h:40 elog #define elog(elevel,...) Definition elog.h:228 pgaio_sync_ops const IoMethodOps pgaio_sync_ops Definition method_sync.c:28 pgaio_sync_submit static int pgaio_sync_submit(uint16 num_staged_ios, PgAioHandle **staged_ios) Definition method_sync.c:42 pgaio_sync_needs_synchronous_execution static bool pgaio_sync_needs_synchronous_execution(PgAioHandle *ioh) Definition method_sync.c:36 postgres.h fb static int fb(int x) Definition preproc-init.c:92 IoMethodOps Definition aio_internal.h:263 IoMethodOps::needs_synchronous_execution bool(* needs_synchronous_execution)(PgAioHandle *ioh) Definition aio_internal.h:284 PgAioHandle Definition aio_internal.h:105 src backend storage aio method_sync.c Generated on Mon Jul 27 2026 03:13:13 for PostgreSQL Source Code by 1.9.8