postgresql/src/backend/access
Thomas Munro b6d8a60aba Restore pg_pread and friends.
Commits cf112c12 and a0dc8271 were a little too hasty in getting rid of
the pg_ prefixes where we use pread(), pwrite() and vectored variants.

We dropped support for ancient Unixes where we needed to use lseek() to
implement replacements for those, but it turns out that Windows also
changes the current position even when you pass in an offset to
ReadFile() and WriteFile() if the file handle is synchronous, despite
its documentation saying otherwise.

Switching to asynchronous file handles would fix that, but have other
complications.  For now let's just put back the pg_ prefix and add some
comments to highlight the non-standard side-effect, which we can now
describe as Windows-only.

Reported-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/20220923202439.GA1156054%40nathanxps13
2022-09-29 13:12:11 +13:00
..
brin meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
common meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
gin Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
gist Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
hash meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
heap Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
index meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nbtree meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
rmgrdesc Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
spgist meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
table meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
tablesample meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
transam Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00