MERGE fix variable warning in non-assert builds

Author: Jesper Pedersen
This commit is contained in:
Simon Riggs 2018-04-05 13:02:29 +01:00
parent a5d86181ec
commit 3af7b2b0d4
1 changed files with 2 additions and 4 deletions

View File

@ -48,13 +48,11 @@ ExecMerge(ModifyTableState *mtstate, EState *estate, TupleTableSlot *slot,
ItemPointer tupleid;
ItemPointerData tuple_ctid;
bool matched = false;
char relkind;
Datum datum;
bool isNull;
relkind = resultRelInfo->ri_RelationDesc->rd_rel->relkind;
Assert(relkind == RELKIND_RELATION ||
relkind == RELKIND_PARTITIONED_TABLE);
Assert(resultRelInfo->ri_RelationDesc->rd_rel->relkind ||
resultRelInfo->ri_RelationDesc->rd_rel->relkind == RELKIND_PARTITIONED_TABLE);
/*
* Reset per-tuple memory context to free any expression evaluation