postgresql/src
Nathan Bossart 0a883a067b Fix sign-compare warnings in pg_iovec.h.
The code in question (pg_preadv() and pg_pwritev()) has been around
for a while, but commit 15c9ac3629 moved it to a header file.  If
third-party code that includes this header file is built with
-Wsign-compare on a system without preadv() or pwritev(), warnings
ensue.  This commit fixes said warnings by casting the result of
pg_pread()/pg_pwrite() to size_t, which should be safe because we
will have already checked for a negative value.

Author: Wolfgang Walther
Discussion: https://postgr.es/m/16989737-1aa8-48fd-8dfe-b7ada06509ab%40technowledgy.de
Backpatch-through: 17
2024-11-08 16:11:08 -06:00
..
backend Improve fix for not entering parallel mode when holding interrupts. 2024-11-08 13:42:01 -05:00
bin pg_basebackup, pg_receivewal: fix failure to find password in ~/.pgpass. 2024-11-04 14:36:04 -05:00
common Guard against enormously long input in pg_saslprep(). 2024-10-28 14:33:55 -04:00
fe_utils Prevent mis-encoding of "trailing junk after numeric literal" errors. 2024-09-05 12:42:33 -04:00
include Fix sign-compare warnings in pg_iovec.h. 2024-11-08 16:11:08 -06:00
interfaces ecpg: Fix out-of-bound read in DecodeDateTime() 2024-10-23 08:35:00 +09:00
makefiles Optimize pg_popcount() with AVX-512 instructions. 2024-04-06 21:56:23 -05:00
pl Further refine _SPI_execute_plan's rule for atomic execution. 2024-10-16 17:36:29 -04:00
port Fix overflow in bsearch_arg() with more than INT_MAX elements 2024-10-28 14:07:57 +02:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Disallow partitionwise join when collations don't match 2024-11-08 17:19:35 +09:00
timezone Update time zone data files to tzdata release 2024b. 2024-10-29 11:49:50 -04:00
tools Monkey-patch LLVM code to fix ARM relocation bug. 2024-11-06 23:07:34 +13:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Update Unicode data to CLDR 45 2024-04-22 09:16:33 +02:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00