Skip to content

Commit

Permalink
Make test_lfc_prefetch more deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Knizhnik committed Feb 19, 2025
1 parent 321ec3a commit c0af808
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test_runner/regress/test_lfc_prefetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ def test_lfc_prefetch(neon_simple_env: NeonEnv):
"shared_buffers=1MB",
"enable_bitmapscan=off",
"enable_seqscan=off",
"autovacuum=off",
],
)
conn = endpoint.connect()
cur = conn.cursor()
cur.execute("create extension neon")
cur.execute("create table t(pk integer, sk integer, filler text default repeat('x',200))")
cur.execute("set statement_timeout=0")
cur.execute("select setseed(0.5)")
cur.execute("insert into t values (generate_series(1,1000000),random()*1000000)")
cur.execute("create index on t(sk)")
cur.execute("vacuum t")
Expand Down

0 comments on commit c0af808

Please sign in to comment.