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.
pull/81/head
Alvaro Herrera 4 years ago
parent a096813b6f
commit 2d655a08d5
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
  1. 2
      src/backend/executor/nodeModifyTable.c

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

Loading…
Cancel
Save