Don't rely on uninitialized value in MERGE / DELETE On MERGE / WHEN MATCHED DELETE it's not possible to get cross-partition updates, so we don't initialize cpUpdateRetrySlot; however, the code was not careful to ignore the value in that case. Make it do so.
Backpatch to 15. Reported-by: Alexander Lakhin <[email protected]> Reviewed-by: Dean Rasheed <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/fd923b5de94cdd3a7d05dcb843667dc228ea7fa3 Modified Files -------------- src/backend/executor/nodeModifyTable.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
