"Gregory Maxwell" <[EMAIL PROTECTED]> writes: > For example, one case made in this thread involved bursty performance > with seqscans presumably because the I/O was stalling while processing > was being performed.
Actually, the question that that raised in my mind is "why isn't the kernel doing read-ahead properly?" When we're doing nonsequential access like an indexscan, it's unsurprising that the kernel can't guess which block we need next, but in a plain seqscan you'd certainly expect the read-ahead algorithm to kick in and ensure that the next block is fetched before we need it. So before we go inventing complicated bits of code with lots of added overhead, we should first find out exactly why the system doesn't already work the way it's supposed to. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend