File tree Expand file tree Collapse file tree
Open diff view settings
Expand file tree Collapse file tree
Open diff view settings
Original file line number Diff line number Diff line change 2121$node -> safe_psql(" postgres" , " CREATE INDEX ON tst USING hnsw (v vector_l2_ops);" );
2222
2323$node -> pgbench(
24- " --no-vacuum --client=5 --time=1 " ,
24+ " --no-vacuum --client=5 --transactions=1000 " ,
2525 0,
2626 [qr { actually processed} ],
2727 [qr { ^$} ],
2828 " VACUUM write" ,
2929 {
30- " 047_hnsw_vacuum_write_insert" => " INSERT INTO tst (v) VALUES (ARRAY[$array_sql ]);" ,
31- " 047_hnsw_vacuum_write_delete" => " DELETE FROM tst WHERE i = (SELECT i FROM tst ORDER BY i LIMIT 1 FOR UPDATE SKIP LOCKED);" ,
32- " 047_hnsw_vacuum_write_vacuum" => q(
33- SELECT pg_try_advisory_lock(42)::integer AS gotlock \gset
34- \if :gotlock
35- VACUUM tst;
36- SELECT pg_advisory_unlock(42);
37- \endif
38- )
30+ " 047_hnsw_vacuum_write_insert\@ 500" => " INSERT INTO tst (v) VALUES (ARRAY[$array_sql ]);" ,
31+ " 047_hnsw_vacuum_write_delete\@ 500" => " DELETE FROM tst WHERE i = (SELECT i FROM tst ORDER BY i LIMIT 1 FOR UPDATE SKIP LOCKED);" ,
32+ " 047_hnsw_vacuum_write_vacuum\@ 1" => " VACUUM tst;"
3933 }
4034);
4135
You can’t perform that action at this time.
0 commit comments