postgresql/src/backend
Amit Kapila 5ac3c1ac22 Fix Coverity issue reported in commit a850be2fe.
Address a potential SIGSEGV that may occur when the tablesync worker
attempts to locate a deleted row while applying changes. This situation
arises during conflict detection for update-deleted scenarios.

To prevent this crash, ensure that the operation is errored out early if
the leader apply worker is unavailable. Since the leader worker maintains
the necessary conflict detection metadata, proceeding without it serves no
purpose and risks reporting incorrect conflict type.

In the passing, improve a nearby comment.

Reported by Tom Lane as per Coverity
Author: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/334468.1757280992@sss.pgh.pa.us
2025-09-09 03:18:22 +00:00
..
access Add error codes when vacuum discovers VM corruption 2025-09-08 17:13:31 -04:00
archive Update copyright for 2025 2025-01-01 11:21:55 -05:00
backup Expand usage of macros for protocol characters. 2025-08-06 13:37:00 -05:00
bootstrap Add new OID alias type regdatabase. 2025-06-30 15:38:54 -05:00
catalog Improve error message for duplicate labels when creating an enum type. 2025-09-02 13:50:56 -04:00
commands pg_upgrade: Transfer pg_largeobject_metadata's files when possible. 2025-09-08 14:19:48 -05:00
executor Don't generate fake "*SELECT*" or "*SELECT* %d" subquery aliases. 2025-09-08 11:50:33 -04:00
foreign Track the number of presorted outer pathkeys in MergePath 2025-05-08 18:21:32 +09:00
jit Don't put library-supplied -L/-I switches before user-supplied ones. 2025-07-29 15:17:40 -04:00
lib Correct list of files in src/backend/lib/README 2025-06-27 09:31:23 +09:00
libpq Silence Valgrind leakage complaints in more-or-less-hackish ways. 2025-08-02 21:59:46 -04:00
main Force LC_COLLATE to C in postmaster. 2025-07-16 14:13:18 -07:00
nodes Add Asserts to validate prevbit values in bms_prev_member 2025-08-15 16:33:07 +12:00
optimizer Don't generate fake "ANY_subquery" aliases, either. 2025-09-08 12:24:02 -04:00
parser Don't generate fake "*SELECT*" or "*SELECT* %d" subquery aliases. 2025-09-08 11:50:33 -04:00
partitioning Avoid leakage of zero-length arrays in partition_bounds_copy(). 2025-08-02 21:59:46 -04:00
po Translation updates 2025-05-05 12:04:49 +02:00
port Don't treat EINVAL from semget() as a hard failure. 2025-08-13 12:00:03 -04:00
postmaster Move dynamically-allocated LWLock tranche names to shared memory. 2025-09-03 13:57:48 -05:00
regex Control ctype behavior internally with a method table. 2025-07-01 07:44:47 -07:00
replication Fix Coverity issue reported in commit a850be2fe. 2025-09-09 03:18:22 +00:00
rewrite Don't generate fake "*TLOCRN*" or "*TROCRN*" aliases, either. 2025-09-08 12:58:07 -04:00
snowball Use PG_MODULE_MAGIC_EXT in our installable shared libraries. 2025-03-26 11:11:02 -04:00
statistics Message style improvements 2025-08-28 09:09:26 +02:00
storage meson: build checksums with extra optimization flags. 2025-09-08 12:29:42 -07:00
tcop Allow to log raw parse tree. 2025-09-06 07:49:51 +09:00
tsearch Remove useless/superfluous Datum conversions 2025-08-08 22:06:57 +02:00
utils Fix corruption of pgstats shared hashtable due to OOM failures 2025-09-08 15:52:23 +09:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile aio: Add liburing dependency 2025-03-26 19:45:32 -04:00
meson.build meson: add and use stamp files for generated headers 2025-08-11 15:18:23 -04:00
nls.mk Return yyparse() result not via global variable 2025-01-24 06:55:39 +01:00