postgresql/src/bin
Thomas Munro cf112c1220 Remove dead pread and pwrite replacement code.
pread() and pwrite() are in SUSv2, and all targeted Unix systems have
them.

Previously, we defined pg_pread and pg_pwrite to emulate these function
with lseek() on old Unixen.  The names with a pg_ prefix were a reminder
of a portability hazard: they might change the current file position.
That hazard is gone, so we can drop the prefixes.

Since the remaining replacement code is Windows-only, move it into
src/port/win32p{read,write}.c, and move the declarations into
src/include/port/win32_port.h.

No need for vestigial HAVE_PREAD, HAVE_PWRITE macros as they were only
used for declarations in port.h which have now moved into win32_port.h.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Greg Stark <stark@mit.edu>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
2022-08-05 09:49:21 +12:00
..
initdb Remove configure probes for symlink/readlink, and dead code. 2022-08-05 09:22:56 +12:00
pg_amcheck Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_archivecleanup Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_basebackup Remove configure probes for symlink/readlink, and dead code. 2022-08-05 09:22:56 +12:00
pg_checksums Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_config Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_controldata Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_ctl Remove configure probe and related tests for getrlimit. 2022-08-05 09:18:34 +12:00
pg_dump Fix brown paper bag bug in bbe08b8869. 2022-07-29 16:31:57 -04:00
pg_resetwal Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_rewind Remove configure probes for symlink/readlink, and dead code. 2022-08-05 09:22:56 +12:00
pg_test_fsync Remove dead pread and pwrite replacement code. 2022-08-05 09:49:21 +12:00
pg_test_timing Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_upgrade Revert recent changes to 002_pg_upgrade.pl. 2022-08-04 15:26:07 -04:00
pg_verifybackup Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_waldump Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pgbench Remove configure probe and related tests for getrlimit. 2022-08-05 09:18:34 +12:00
pgevent Update copyright for 2022 2022-01-07 19:04:57 -05:00
psql Add xheader_width pset option to psql 2022-07-25 14:25:02 -04:00
scripts Add --schema and --exclude-schema options to vacuumdb. 2022-07-31 16:46:13 -04:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00