Don't rely on uninitialized value in MERGE / DELETE
Alvaro Herrera <alvherre@alvh.no-ip.org>
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 <exclusion@gmail.com> Reviewed-by: Dean Rasheed <dean.a.rasheed@gmail.com> Discussion: https://postgr.es/m/17792-0f89452029662c36@postgresql.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeModifyTable.c | modified | +7 −8 |
Discussion
- BUG #17792: MERGE uses uninitialized pointer and crashes when target tuple is updated concurrently 9 messages · 2023-02-14 → 2023-03-13