postgresql/src/include/common
Michael Paquier ce340e530d Revise pg_pwrite_zeros()
The following changes are made to pg_write_zeros(), the API able to
write series of zeros using vectored I/O:
- Add of an "offset" parameter, to write the size from this position
(the 'p' of "pwrite" seems to mean position, though POSIX does not
outline ythat directly), hence the name of the routine is incorrect if
it is not able to handle offsets.
- Avoid memset() of "zbuffer" on every call.
- Avoid initialization of the whole IOV array if not needed.
- Group the trailing write() call with the main write() call,
simplifying the function logic.

Author: Andres Freund
Reviewed-by: Michael Paquier, Bharath Rupireddy
Discussion: https://postgr.es/m/20230215005525.mrrlmqrxzjzhaipl@awork3.anarazel.de
2023-03-06 13:21:33 +09:00
..
archive.h Revert refactoring of restore command code to shell_restore.c 2023-02-06 08:28:42 +09:00
base64.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
checksum_helper.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
compression.h Introduce a generic pg_dump compression API 2023-02-23 18:33:40 +01:00
config_info.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
connect.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
controldata_utils.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
cryptohash.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe_memutils.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
file_perm.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
file_utils.h Revise pg_pwrite_zeros() 2023-03-06 13:21:33 +09:00
hashfn.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
hmac.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
int.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
int128.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
ip.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonapi.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
keywords.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
kwlookup.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
link-canary.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
logging.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
md5.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
openssl.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
percentrepl.h Common function for percent placeholder replacement 2023-01-11 10:42:35 +01:00
pg_lzcompress.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pg_prng.h Invent random_normal() to provide normally-distributed random numbers. 2023-01-09 12:44:00 -05:00
relpath.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
restricted_token.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
saslprep.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
scram-common.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
sha1.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
sha2.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
shortest_dec.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
string.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
unicode_east_asian_fw_table.h Update Unicode data to Unicode 15.0.0 2022-09-19 18:30:05 -04:00
unicode_nonspacing_table.h Update Unicode data to Unicode 15.0.0 2022-09-19 18:30:05 -04:00
unicode_norm.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
unicode_norm_hashfunc.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
unicode_norm_table.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
unicode_normprops_table.h Update Unicode data to Unicode 15.0.0 2022-09-19 18:30:05 -04:00
username.h Update copyright for 2023 2023-01-02 15:00:37 -05:00