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
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
1 changed files with 1 additions and 1 deletions

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