postgresql/src/backend
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
..
access Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
backup Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
bootstrap meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
catalog Change some errdetail() to errdetail_internal() 2022-09-28 17:14:53 +02:00
commands Change some errdetail() to errdetail_internal() 2022-09-28 17:14:53 +02:00
executor Restrict Datum sort optimization to byval types only 2022-09-29 11:43:00 +13:00
foreign meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
jit meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
lib meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
libpq meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
main meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nodes Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
optimizer meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
parser Remove ALL keyword from TABLES IN SCHEMA for publication 2022-09-22 19:02:25 +02:00
partitioning meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
po meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
port meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
postmaster Message style improvements 2022-09-24 18:41:25 -04:00
regex Remove uses of register due to incompatibility with C++17 and up 2022-09-24 12:08:37 -07:00
replication Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
rewrite meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
snowball meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
statistics meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
storage Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
tcop Enable WRITE_READ_PARSE_PLAN_TREES of rewritten utility statements 2022-09-26 16:32:16 +02:00
tsearch Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
utils Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
.gitignore
Makefile Move gramparse.h to src/backend/parser 2022-09-14 10:57:13 +07:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00