pgbench -M prepared -n -r -P 1 -f ./test.sql -c 32 -j 32 -T 60 database name
vi test.sql
\set id random(1,100000000)
select * from test where id=:id;
更多https://www.cndba.cn/foucus/article/3625
pgbench -M prepared -n -r -P 1 -f ./test.sql -c 32 -j 32 -T 60 database name
vi test.sql
\set id random(1,100000000)
select * from test where id=:id;
更多https://www.cndba.cn/foucus/article/3625