Re: EvictUnpinnedBuffer and buffer free list

2025-02-11 Thread Ashutosh Bapat
Thanks a lot Melanie for a very detailed response, a good reference to pin. On Fri, Jan 31, 2025 at 8:20 PM Melanie Plageman wrote: > > I don't have an explicit issue with EvictUnpinnedBuffer() putting > buffers on the freelist -- it seems like that could be fine. But since > it is for testing/d

Re: EvictUnpinnedBuffer and buffer free list

2025-01-31 Thread Melanie Plageman
On Fri, Jan 31, 2025 at 12:16 AM Ashutosh Bapat wrote: > > Hi All, > EvictUnpinnedBuffer() calls InvalidateVictimBuffer() followed by > UnpinBuffer() before returning. None of those functions put the buffer > back into the free list. Its freeNext remains set to > FREENEXT_NOT_IN_LIST. I think then

Re: EvictUnpinnedBuffer and buffer free list

2025-01-31 Thread Ashutosh Bapat
On Fri, Jan 31, 2025 at 2:19 PM Yura Sokolov wrote: > > 31.01.2025 08:15, Ashutosh Bapat пишет: > > Hi All, > > EvictUnpinnedBuffer() calls InvalidateVictimBuffer() followed by > > UnpinBuffer() before returning. None of those functions put the buffer > > back into the free list. Its freeNext rema

Re: EvictUnpinnedBuffer and buffer free list

2025-01-31 Thread Yura Sokolov
31.01.2025 08:15, Ashutosh Bapat пишет: Hi All, EvictUnpinnedBuffer() calls InvalidateVictimBuffer() followed by UnpinBuffer() before returning. None of those functions put the buffer back into the free list. Its freeNext remains set to FREENEXT_NOT_IN_LIST. I think then that buffer will never be

EvictUnpinnedBuffer and buffer free list

2025-01-30 Thread Ashutosh Bapat
Hi All, EvictUnpinnedBuffer() calls InvalidateVictimBuffer() followed by UnpinBuffer() before returning. None of those functions put the buffer back into the free list. Its freeNext remains set to FREENEXT_NOT_IN_LIST. I think then that buffer will never be used and lost forever. I know that that f