postgresql/src
Heikki Linnakangas 17accbe0f4 libpq: Make error checks in the new buffer draining code more robust
Check explicitly for pqsecure_read() returning an error. It shouldn't
fail, and we would've caught it in the check for a short read, but
better to be explicit so that the error message is more informative.
We also shouldn't update 'inEnd' when the read fails, although that
too is just pro forma as we will bail out and close the connection on
error.

Reported-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://www.postgresql.org/message-id/34844e8c-267c-4daf-b1e0-f26059a4a7d3@eisentraut.org
Backpatch-through: 14
2026-07-09 18:34:27 +03:00
..
backend Fix advertising autovacuum launcher's ProcNumber 2026-07-09 15:14:19 +03:00
bin Remove sketchy TerminateThread() call on Ctrl-C on Windows 2026-07-08 18:45:09 +03:00
common unicode_case.c: change API to signal UTF8 decoding error. 2026-07-07 15:34:05 -07:00
fe_utils Add comment to describe the various frontend cancel methods 2026-07-06 19:11:04 +03:00
include Fix advertising autovacuum launcher's ProcNumber 2026-07-09 15:14:19 +03:00
interfaces libpq: Make error checks in the new buffer draining code more robust 2026-07-09 18:34:27 +03:00
makefiles Add CONCURRENTLY option to REPACK 2026-04-06 21:55:08 +02:00
pl Make PLy_elog() use pg_integer_constant_p(). 2026-07-06 13:48:42 -04:00
port Use C11 alignas instead of pg_attribute_aligned 2026-07-01 08:36:43 +02:00
template Switch the semaphore API on Solaris to unnamed POSIX. 2026-03-14 14:10:32 -04:00
test JSON_TABLE PLAN clause 2026-07-09 14:37:31 +03:00
timezone Fix macro-redefinition warning introduced by aeb07c55f. 2026-07-01 13:44:45 -04:00
tools JSON_TABLE PLAN clause 2026-07-09 14:37:31 +03:00
tutorial Pre-beta mechanical code beautification, step 1: run pgindent. 2026-05-13 10:34:17 -04:00
.gitignore
DEVELOPERS
Makefile Add CONCURRENTLY option to REPACK 2026-04-06 21:55:08 +02:00
Makefile.global.in Update Unicode data to CLDR 48.2 2026-04-13 11:13:36 +02:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00