-- -- src/test/performance/cfs/pgbench_readonly.sql -- -- Custom pgbench script: read-only point lookups by primary key against a -- single CFS/plain table. Use with: -- -- pgbench -n -c -j -T \ -- -f pgbench_readonly.sql -D scale=1000 -- -- The :scale variable controls the id range drawn from the table populated by -- cfs_perf_setup.sql. Each transaction reads one random row, forcing the -- buffer manager to decompress the CFS page on a cache miss. \set id random(1, :scale) BEGIN; SELECT payload FROM :table WHERE id = :id; COMMIT;