postgresql/src/include
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 Move basebackup code to new directory src/backend/backup 2022-08-10 14:03:23 -04:00
bootstrap Harmonize more lexer function parameter names. 2022-09-22 13:27:16 -07:00
catalog Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
commands Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
common Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
datatype Fix overflow hazards in interval input and output conversions. 2022-04-02 16:12:29 -04:00
executor Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
fe_utils Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
foreign Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
jit Add central declarations for dlsym()ed symbols 2022-07-17 17:23:42 -07:00
lib Add missing inequality searches to rbtree 2022-07-08 22:00:03 +03:00
libpq Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
mb Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
nodes Move RelFileNumber declarations to common/relpath.h. 2022-09-27 12:01:57 -04:00
optimizer Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
parser Harmonize more lexer function parameter names. 2022-09-22 13:27:16 -07:00
partitioning Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
port Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
portability Fix obsolete comments in instr_time.h. 2022-08-09 11:50:03 +12:00
postmaster Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
regex Consistently use named parameters in regex code. 2022-09-19 15:10:24 -07:00
replication Remove unused xid parameter. 2022-09-26 08:47:00 +05:30
rewrite Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
snowball Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
statistics Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
storage Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
tcop Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
tsearch Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
utils Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
Makefile Move gramparse.h to src/backend/parser 2022-09-14 10:57:13 +07:00
c.h Add definition pg_attribute_aligned() for MSVC 2022-09-21 10:11:23 +09:00
fmgr.h Mark all symbols exported from extension libraries PGDLLEXPORT. 2022-07-17 18:50:14 -07:00
funcapi.h Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
getopt_long.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
meson.build meson: Include CFLAGS/c_args in summary and pg_config output 2022-09-26 19:36:24 -07:00
miscadmin.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
pg_config.h.in Remove configure probe for sockaddr_in6 and require AF_INET6. 2022-08-26 10:18:30 +12:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.meson meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
pg_config_manual.h Remove our artificial PG_SOMAXCONN limit on listen queue length. 2022-08-23 10:15:06 -04:00
pg_getopt.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pg_trace.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pgstat.h Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
pgtar.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pgtime.h Harmonize more parameter names in bulk. 2022-09-20 13:09:30 -07:00
port.h Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
postgres.h Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
postgres_ext.h Move RelFileNumber declarations to common/relpath.h. 2022-09-27 12:01:57 -04:00
postgres_fe.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
windowapi.h Update copyright for 2022 2022-01-07 19:04:57 -05:00