PostgreSQL's clock sweep algorithm decides what pages to evict from shared buffers, but the machinery matters more than the number. (I consult on PostgreSQL through PGX Inc..)