git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3fd2a79) | patch
Use pg_pread() and pg_pwrite() for data files and WAL.
Tue, 6 Nov 2018 20:51:50 +0000 (09:51 +1300)
Tue, 6 Nov 2018 20:51:50 +0000 (09:51 +1300)
commit c24dcd0cfd949bdf245814c4c2b3df828ee7db36
Use pg_pread() and pg_pwrite() for data files and WAL.

Cut down on system calls by doing random I/O using offset-based OS
routines where available. Remove the code for tracking the 'virtual'
seek position. The only reason left to call FileSeek() was to get
the file's size, so provide a new function FileSize() instead.

Author: Oskari Saarenmaa, Thomas Munro
Reviewed-by: Thomas Munro, Jesper Pedersen, Tom Lane, Alvaro Herrera
Discussion: https://postgr.es/m/CAEepm=02rapCpPR3ZGF2vW=SBHSdFYO_bz_f-wwWJonmA3APgw@mail.gmail.com
Discussion: https://postgr.es/m/b8748d39-0b19-0514-a1b9-4e5a28e6a208%40gmail.com
Discussion: https://postgr.es/m/a86bd200-ebbe-d829-e3ca-0c4474b2fcb7%40ohmu.fi
src/backend/access/heap/rewriteheap.c diff | blob | blame | history
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/storage/file/buffile.c diff | blob | blame | history
src/backend/storage/file/fd.c diff | blob | blame | history
src/backend/storage/smgr/md.c diff | blob | blame | history
src/include/storage/fd.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /