postgresql/src/include/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
..
amapi.h Revert changes in HOT handling of BRIN indexes 2022-06-16 15:02:49 +02:00
amvalidate.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
attmap.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
attnum.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
brin.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
brin_internal.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
brin_page.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
brin_pageops.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
brin_revmap.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
brin_tuple.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
brin_xlog.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
bufmask.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
clog.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
commit_ts.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
detoast.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
genam.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
generic_xlog.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
gin.h Convert *GetDatum() and DatumGet*() macros to inline functions 2022-09-27 20:50:21 +02:00
gin_private.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
ginblock.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
ginxlog.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
gist.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
gist_private.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
gistscan.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
gistxlog.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
hash.h Add macros in hash and btree AMs to get the special area of their pages 2022-04-01 13:24:50 +09:00
hash_xlog.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
heapam.h Harmonize heapam and tableam parameter names. 2022-09-19 16:46:23 -07:00
heapam_xlog.h Harmonize heapam and tableam parameter names. 2022-09-19 16:46:23 -07:00
heaptoast.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
hio.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
htup.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
htup_details.h Harmonize heapam and tableam parameter names. 2022-09-19 16:46:23 -07:00
itup.h Convert macros to static inline functions (itup.h) 2022-07-19 07:24:55 +02:00
multixact.h Harmonize heapam and tableam parameter names. 2022-09-19 16:46:23 -07:00
nbtree.h Add missing parenthesis to max item size macro. 2022-08-05 13:06:19 -07:00
nbtxlog.h Fix inconsistent comments for some function declarations in headers 2022-08-04 17:36:21 +09:00
parallel.h Mark ParallelMessagePending as sig_atomic_t 2022-09-27 09:29:56 +09:00
printsimple.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
printtup.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
relation.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
reloptions.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
relscan.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
rewriteheap.h Harmonize heapam and tableam parameter names. 2022-09-19 16:46:23 -07:00
rmgr.h Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
rmgrlist.h Update the comment in rmgrlist.h to match it to the code. 2022-08-30 09:16:41 +05:30
sdir.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
session.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
skey.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
slru.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
spgist.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
spgist_private.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
spgxlog.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
stratnum.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
subtrans.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
syncscan.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
sysattr.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
table.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
tableam.h Harmonize heapam and tableam parameter names. 2022-09-19 16:46:23 -07:00
timeline.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
toast_compression.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
toast_helper.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
toast_internals.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
transam.h Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
tsmapi.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
tupconvert.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
tupdesc.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
tupdesc_details.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
tupmacs.h Convert macros to static inline functions (tupmacs.h) 2022-07-18 08:01:27 +02:00
twophase.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
twophase_rmgr.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
valid.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
visibilitymap.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
visibilitymapdefs.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
xact.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
xlog.h Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
xlog_internal.h Convert macros to static inline functions (xlog_internal.h) 2022-07-15 14:56:00 +02:00
xlogarchive.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
xlogbackup.h Remove dependency to StringInfo in xlogbackup.{c.h} 2022-09-27 09:15:07 +09:00
xlogdefs.h Remove configure probe for fdatasync. 2022-08-05 16:37:38 +12:00
xloginsert.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
xlogprefetcher.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
xlogreader.h Restore pg_pread and friends. 2022-09-29 13:12:11 +13:00
xlogrecord.h Change internal RelFileNode references to RelFileNumber or RelFileLocator. 2022-07-06 11:39:09 -04:00
xlogrecovery.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00
xlogstats.h Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
xlogutils.h Harmonize parameter names in storage and AM code. 2022-09-19 19:18:36 -07:00