Merge pull request #1764 from citusdata/relcache_leak

Fix a relcache reference leak in stats collection.
pull/1765/head
Metin Döşlü 2017-11-07 11:59:00 +02:00 committed by GitHub
commit 731b1254f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -397,6 +397,7 @@ DistributedTablesSize(List *distTableOids)
if (PartitionMethod(relationId) == DISTRIBUTE_BY_HASH &&
!SingleReplicatedTable(relationId))
{
heap_close(relation, AccessShareLock);
continue;
}