\set naccounts 400000000 \setrandom aid 1 :naccounts select count(*) from pgbench_accounts where abalance between :aid and :aid+100