You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open vfds in "overlapped" mode, and teach pg_pread()/pg_pwrite() to
wait if necessary. Add pg_direct_preadv()/pg_direct_pwritev() as
synonyms for pg_preadv()/pg_pwritev() when using a direct I/O file
handle, but on Windows redirect them to ReadFileScatter() and
WriteFileGather(). Teach fd.c to use those alternative names if a File
was opened with PG_O_DIRECT, since it remembers that for vfds.
This is enough for io_method=sync and io_method=worker to benefit from
true vectored I/O for buffer pool I/O when debug_io_direct=data is used
on this platform. Later patches for native AIO need this too.
Windows doesn't have vectored APIs for buffered I/O, and still falls
back to the loop-based emulation in that case.
0 commit comments