Re: closing heap relation

2021-07-13 Thread Zhihong Yu
Hi, On Tue, Jul 13, 2021 at 3:13 PM Zhihong Yu wrote: > Hi, > I was looking at index_drop() in PG 11 branch. > In if (concurrent)block, the heap and index relations are overwritten > since they were opened a few lines above the concurrent check. > > Shouldn't the two relations be closed first ?

closing heap relation

2021-07-13 Thread Zhihong Yu
Hi, I was looking at index_drop() in PG 11 branch. In if (concurrent)block, the heap and index relations are overwritten since they were opened a few lines above the concurrent check. Shouldn't the two relations be closed first ? thanks diff --git a/src/backend/catalog/index.c b/src/backend/cata