logoalt Hacker News

Some more thoughts on random_page_cost

18 pointsby blueshoesslast Friday at 9:05 PM1 commentview on HN

Comments

nopurposetoday at 5:47 AM

> a sequential scan may push ~100GB of other data from memory (shared buffers or page cache).

Small note, if I remember correctly PostgreSQL allocates small buffer within shared_buffers for bulk reads. It is so that single sequential scan won't flush all of shared buffers content.

Similar mechanism exists for a pagecache implementation on Linux. It is divided into generations based on access patterns.