1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

Blind fix for uninitialized memory bug in ba9a7e3921

Valgrind animal skink shows a crash in this new code.  I couldn't
reproduce the problem locally, but going by blind code inspection,
initializing insert_destrel should be sufficient to fix the problem.
This commit is contained in:
Alvaro Herrera
2022-03-20 22:10:24 +01:00
parent a096813b6f
commit 2d655a08d5

View File

@ -1820,7 +1820,7 @@ lreplace:;
if (partition_constraint_failed)
{
TupleTableSlot *inserted_tuple;
ResultRelInfo *insert_destrel;
ResultRelInfo *insert_destrel = NULL;
/*
* ExecCrossPartitionUpdate will first DELETE the row from the