Skip to content

Commit

Permalink
another little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke committed Aug 13, 2024
1 parent a253047 commit ad6ebc4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/backend/commands/matview.c
Original file line number Diff line number Diff line change
Expand Up @@ -3303,9 +3303,18 @@ clean_up_IVM_hash_entry(MV_TriggerHashEntry *entry, bool is_abort)
}
if (!is_abort)
{
if (CurrentResourceOwner == entry->resowner) {
ExecDropSingleTupleTableSlot(table->slot);
table_close(table->rel, NoLock);
if (CurrentResourceOwner == entry->resowner)
{
if (table->slot)
{
ExecDropSingleTupleTableSlot(table->slot);
table->slot = NULL;
}
if (table->rel)
{
table_close(table->rel, NoLock);
table->rel = NULL;
}
}
}
}
Expand Down

0 comments on commit ad6ebc4

Please sign in to comment.