Re: [HACKERS] have SLRU truncation use callbacks

2011-10-04 Thread Alvaro Herrera
Excerpts from Kevin Grittner's message of jue sep 29 14:51:38 -0300 2011: > Alvaro Herrera wrote: > > > But I think these changes stand on their own, merely on code > > clarity grounds). > > After a quick scan, I think it helps with that. This was a messy > area to deal with in SSI given the

Re: [HACKERS] have SLRU truncation use callbacks

2011-09-29 Thread Kevin Grittner
Alvaro Herrera wrote: > But I think these changes stand on their own, merely on code > clarity grounds). After a quick scan, I think it helps with that. This was a messy area to deal with in SSI given the old API; with this change I think we could make that part of the SSI code clearer and ma

[HACKERS] have SLRU truncation use callbacks

2011-09-29 Thread Alvaro Herrera
Hi, Currently, the mechanism that SLRU uses to truncate directory entries is hardcoded in SlruScanDirectory. It receives a cutoff page number and a boolean flag; segments found in the SLRU directory that are below the cutoff are deleted -- iff the flag is true. This is fine for most current uses