Re: [HACKERS] Minor optimizations in lazy_scan_heap

2012-12-07 Thread Pavan Deolasee
On Tue, Dec 4, 2012 at 11:02 PM, Robert Haas robertmh...@gmail.com wrote: On Mon, Dec 3, 2012 at 1:23 AM, Pavan Deolasee pavan.deola...@gmail.com Comments ? Anyone thinks any/all of above is useful ? I doubt that any of these things make enough difference to be worth bothering with,

Re: [HACKERS] Minor optimizations in lazy_scan_heap

2012-12-04 Thread Robert Haas
On Mon, Dec 3, 2012 at 1:23 AM, Pavan Deolasee pavan.deola...@gmail.com wrote: I was looking at the code in lazy_scan_heap() and I realized there are couple of low-hanging optimizations that we can do there. 1. The for-loop walks through each block of the relation. But if scan_all is set to