Bruce Momjian wrote:
>
> Index: src/backend/catalog/heap.c
> ===================================================================
> ***************
> *** 1375,1380 ****
> --- 1370,1376 ----
> rdesc->rd_tmpunlinked = TRUE;
> heap_close(rdesc);
> RemoveFromTempRelList(rdesc);
> + RelationForgetRelation(rdesc->rd_id);
We need not in RelationForgetRelation() in heap_destroy().
Local relations are handled in other way...
Vadim