Skip to content

Commit

Permalink
fix duplicate key violation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodobolero committed Feb 26, 2025
1 parent 898b827 commit f6c5134
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def insert_second_chunk_and_verify_autovacuum_is_now_running(
(random() * 10)::int + 1 AS bid,
(random() * 10000)::int AS abalance,
'filler text' AS filler
FROM generate_series({6800001 + rows_to_insert -1}, {6800001 + rows_to_insert * 2 - 1}) AS aid;
FROM generate_series({6800001 + rows_to_insert}, {6800001 + rows_to_insert * 2 - 1}) AS aid;
""")
assert cur.rowcount == rows_to_insert
for _ in range(5):
Expand Down

0 comments on commit f6c5134

Please sign in to comment.