| From: | Alexey Slynko <slynko(at)tronet(dot)ru> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | About index_build |
| Date: | 2005-04-07 07:43:04 |
| Message-ID: | 20050407111851.G29510@witch.tronet.ru |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)tronet(dot)ru
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Palle Girgensohn | 2005-04-07 08:25:42 | Re: prepared statements don't log arguments? |
| Previous Message | Qingqing Zhou | 2005-04-07 06:34:03 | Re: Shared row locking, revisited |