Re: Various silliness in heap_getnext and related routines

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Various silliness in heap_getnext and related routines
Дата
Msg-id 9987.992105608@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Various silliness in heap_getnext and related routines  (bruc@stone.congenomics.com (Robert E. Bruccoleri))
Ответы Re: Various silliness in heap_getnext and related routines  (bruc@stone.congenomics.com (Robert E. Bruccoleri))
Список pgsql-hackers
bruc@stone.congenomics.com (Robert E. Bruccoleri) writes:
> For my immediate problem, would removing the spinlock acquisition
> be OK?

It'd be interesting to remove the marked lines:
    bufHdr = &BufferDescriptors[buffer - 1];
-        SpinAcquire(BufMgrLock);    if (bufHdr->tag.blockNum == blockNumber &&
RelFileNodeEquals(bufHdr->tag.rnode,relation->rd_node))    {
 
-            SpinRelease(BufMgrLock);        return buffer;    }
-        return ReadBufferWithBufferLock(relation, blockNumber, true);

and see how that affects your performance issue, if at all.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [JDBC] unlink large objects
Следующее
От: darcy@druid.net (D'Arcy J.M. Cain)
Дата:
Сообщение: Re: ERROR: Memory exhausted in AllocSetAlloc(909324558)