About index_build - Mailing list pgsql-hackers

From Alexey Slynko
Subject About index_build
Date
Msg-id 20050407111851.G29510@witch.tronet.ru
Whole thread Raw
Responses Re: About index_build  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

I have found comments in backend/catalog/index.c, that
index_build closes the passed rels ( heapRelation and indexRelation ).
But in backend/access/nbtree/nbtree.c I see something like this:
        if (IsNormalProcessingMode())        {            ....            heap_close(heap, NoLock);
index_close(index);           ....         }
 

Why it is not like
        if (IsNormalProcessingMode())        {            ....            heap_close(heap, NoLock);
index_close(index);           ....         }     else {            heap_close(heap, NoLock);
index_close(index);        }
 

Is it a bug or feature ?
                Alexey Slynko                E-mail: slynko@tronet.ru



pgsql-hackers by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: Shared row locking, revisited
Next
From: Palle Girgensohn
Date:
Subject: Re: prepared statements don't log arguments?