pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
15+ messages / 3 participants
[nested] [flat]

* [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-21 20:48  "ankane (@ankane)" <noreply+ankane@github.com>
  0 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-01-21 20:48 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi all, wanted to get feedback on this change.

This PR updates cost estimation to not an index if the expected number of tuples to be returned is less than the number requested by the user. A few situations where this happens are:

1. A large % of rows being filtered - #263
2. Limit + offset > ef_search (HNSW) - #396
3. Limit + offset > probes * vectors per list (IVFFlat) - #405

See TAP tests 018 through 021 for specific queries. The costs are set so users can still override this with `SET enable_seqscan = off;` (except in the case of no `LIMIT`).

Let me know if you have any thoughts.

inline patch 1: src/hnsw.c, src/ivfflat.c, test/expected/hnsw_cosine.out and 22 more (+263/-52 lines) download inline-1.patchdiff --git a/src/hnsw.c b/src/hnsw.c index 17198205f..8515501f5 100644 --- a/src/hnsw.c +++ b/src/hnsw.c @@ -79,12 +79,14 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, int m; int entryLevel; Relation index; + double selectivity = 1; + ListCell *lc; #if PG_VERSION_NUM < 120000 List *qinfos; #endif - /* Never use index without order */ - if (path->indexorderbys == NULL) + /* Never use index without order or limit */ + if (path->indexorderbys == NULL || root->limit_tuples < 0) { *indexStartupCost = DBL_MAX; *indexTotalCost = DBL_MAX; @@ -94,6 +96,29 @@ hnswcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, return; } + /* Get the selectivity of non-index conditions */ + foreach(lc, path->indexinfo->indrestrictinfo) + { + RestrictInfo *rinfo = lfirst(lc); + + if (rinfo->norm_selec >= 0 && rinfo->norm_selec <= 1 && rinfo->norm_selec != (Selectivity) DEFAULT_INEQ_SEL) + selectivity *= rinfo->norm_selec; + } + + /* + * Do not use index if limit + offset > expected tuples unless + * enable_seqscan = off + */ + if (root->limit_tuples > hnsw_ef_search * selectivity) + { + *indexStartupCost = 1.0e10 - 1; + *indexTotalCost = 1.0e10 - 1; + *indexSelectivity = 0; + *indexCorrelation = 0; + *indexPages = 0; + return; + } + MemSet(&costs, 0, sizeof(costs)); index = index_open(path->indexinfo->indexoid, NoLock); diff --git a/src/ivfflat.c b/src/ivfflat.c index d6383f460..13e5c3247 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -72,12 +72,14 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, double ratio; double spc_seq_page_cost; Relation index; + double selectivity = 1; + ListCell *lc; #if PG_VERSION_NUM < 120000 List *qinfos; #endif - /* Never use index without order */ - if (path->indexorderbys == NULL) + /* Never use index without order or limit */ + if (path->indexorderbys == NULL || root->limit_tuples < 0) { *indexStartupCost = DBL_MAX; *indexTotalCost = DBL_MAX; @@ -105,6 +107,29 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, */ costs.numIndexTuples = path->indexinfo->tuples * ratio; + /* Get the selectivity of non-index conditions */ + foreach(lc, path->indexinfo->indrestrictinfo) + { + RestrictInfo *rinfo = lfirst(lc); + + if (rinfo->norm_selec >= 0 && rinfo->norm_selec <= 1 && rinfo->norm_selec != (Selectivity) DEFAULT_INEQ_SEL) + selectivity *= rinfo->norm_selec; + } + + /* + * Do not use index if limit + offset > expected tuples unless + * enable_seqscan = off + */ + if (root->limit_tuples > costs.numIndexTuples * selectivity) + { + *indexStartupCost = 1.0e10 - 1; + *indexTotalCost = 1.0e10 - 1; + *indexSelectivity = 0; + *indexCorrelation = 0; + *indexPages = 0; + return; + } + #if PG_VERSION_NUM >= 120000 genericcostestimate(root, path, loop_count, &costs); #else diff --git a/test/expected/hnsw_cosine.out b/test/expected/hnsw_cosine.out index df9eb81cd..a622a366c 100644 --- a/test/expected/hnsw_cosine.out +++ b/test/expected/hnsw_cosine.out @@ -3,7 +3,7 @@ CREATE TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING hnsw (val vector_cosine_ops); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <=> '[3,3,3]'; +SELECT * FROM t ORDER BY val <=> '[3,3,3]' LIMIT 5; val --------- [1,1,1] @@ -11,13 +11,13 @@ SELECT * FROM t ORDER BY val <=> '[3,3,3]'; [1,2,4] (3 rows) -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]') t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]' LIMIT 5) t2; count ------- 3 (1 row) -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector)) t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector) LIMIT 5) t2; count ------- 3 diff --git a/test/expected/hnsw_ip.out b/test/expected/hnsw_ip.out index 92a507227..b3e1a1262 100644 --- a/test/expected/hnsw_ip.out +++ b/test/expected/hnsw_ip.out @@ -3,7 +3,7 @@ CREATE TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING hnsw (val vector_ip_ops); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <#> '[3,3,3]'; +SELECT * FROM t ORDER BY val <#> '[3,3,3]' LIMIT 5; val --------- [1,2,4] @@ -12,7 +12,7 @@ SELECT * FROM t ORDER BY val <#> '[3,3,3]'; [0,0,0] (4 rows) -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector)) t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector) LIMIT 5) t2; count ------- 4 diff --git a/test/expected/hnsw_l2.out b/test/expected/hnsw_l2.out index 42096610a..453834f12 100644 --- a/test/expected/hnsw_l2.out +++ b/test/expected/hnsw_l2.out @@ -3,7 +3,7 @@ CREATE TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING hnsw (val vector_l2_ops); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; val --------- [1,2,3] @@ -12,7 +12,7 @@ SELECT * FROM t ORDER BY val <-> '[3,3,3]'; [0,0,0] (4 rows) -SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector); +SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector) LIMIT 5; val --------- [0,0,0] @@ -28,7 +28,7 @@ SELECT COUNT(*) FROM t; (1 row) TRUNCATE t; -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; val ----- (0 rows) diff --git a/test/expected/hnsw_unlogged.out b/test/expected/hnsw_unlogged.out index 00637737e..e4d0af1ef 100644 --- a/test/expected/hnsw_unlogged.out +++ b/test/expected/hnsw_unlogged.out @@ -2,7 +2,7 @@ SET enable_seqscan = off; CREATE UNLOGGED TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING hnsw (val vector_l2_ops); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; val --------- [1,2,3] diff --git a/test/expected/ivfflat_cosine.out b/test/expected/ivfflat_cosine.out index 8584d9552..2baeaf6fe 100644 --- a/test/expected/ivfflat_cosine.out +++ b/test/expected/ivfflat_cosine.out @@ -3,7 +3,7 @@ CREATE TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING ivfflat (val vector_cosine_ops) WITH (lists = 1); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <=> '[3,3,3]'; +SELECT * FROM t ORDER BY val <=> '[3,3,3]' LIMIT 5; val --------- [1,1,1] @@ -11,13 +11,13 @@ SELECT * FROM t ORDER BY val <=> '[3,3,3]'; [1,2,4] (3 rows) -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]') t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]' LIMIT 5) t2; count ------- 3 (1 row) -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector)) t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector) LIMIT 5) t2; count ------- 3 diff --git a/test/expected/ivfflat_ip.out b/test/expected/ivfflat_ip.out index d2bc386bf..b2c9000d3 100644 --- a/test/expected/ivfflat_ip.out +++ b/test/expected/ivfflat_ip.out @@ -3,7 +3,7 @@ CREATE TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING ivfflat (val vector_ip_ops) WITH (lists = 1); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <#> '[3,3,3]'; +SELECT * FROM t ORDER BY val <#> '[3,3,3]' LIMIT 5; val --------- [1,2,4] @@ -12,7 +12,7 @@ SELECT * FROM t ORDER BY val <#> '[3,3,3]'; [0,0,0] (4 rows) -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector)) t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector) LIMIT 5) t2; count ------- 4 diff --git a/test/expected/ivfflat_l2.out b/test/expected/ivfflat_l2.out index bef78ae69..4346d7261 100644 --- a/test/expected/ivfflat_l2.out +++ b/test/expected/ivfflat_l2.out @@ -3,7 +3,7 @@ CREATE TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING ivfflat (val vector_l2_ops) WITH (lists = 1); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; val --------- [1,2,3] @@ -12,7 +12,7 @@ SELECT * FROM t ORDER BY val <-> '[3,3,3]'; [0,0,0] (4 rows) -SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector); +SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector) LIMIT 5; val --------- [0,0,0] @@ -31,7 +31,7 @@ TRUNCATE t; NOTICE: ivfflat index created with little data DETAIL: This will cause low recall. HINT: Drop the index until the table has more data. -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; val ----- (0 rows) diff --git a/test/expected/ivfflat_unlogged.out b/test/expected/ivfflat_unlogged.out index 724886f7f..df1f732d4 100644 --- a/test/expected/ivfflat_unlogged.out +++ b/test/expected/ivfflat_unlogged.out @@ -2,7 +2,7 @@ SET enable_seqscan = off; CREATE UNLOGGED TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING ivfflat (val vector_l2_ops) WITH (lists = 1); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; val --------- [1,2,3] diff --git a/test/sql/hnsw_cosine.sql b/test/sql/hnsw_cosine.sql index d23f4f31e..162a922c9 100644 --- a/test/sql/hnsw_cosine.sql +++ b/test/sql/hnsw_cosine.sql @@ -6,8 +6,8 @@ CREATE INDEX ON t USING hnsw (val vector_cosine_ops); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <=> '[3,3,3]'; -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]') t2; -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector)) t2; +SELECT * FROM t ORDER BY val <=> '[3,3,3]' LIMIT 5; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]' LIMIT 5) t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector) LIMIT 5) t2; DROP TABLE t; diff --git a/test/sql/hnsw_ip.sql b/test/sql/hnsw_ip.sql index 5a616a190..c684f4bfa 100644 --- a/test/sql/hnsw_ip.sql +++ b/test/sql/hnsw_ip.sql @@ -6,7 +6,7 @@ CREATE INDEX ON t USING hnsw (val vector_ip_ops); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <#> '[3,3,3]'; -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector)) t2; +SELECT * FROM t ORDER BY val <#> '[3,3,3]' LIMIT 5; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector) LIMIT 5) t2; DROP TABLE t; diff --git a/test/sql/hnsw_l2.sql b/test/sql/hnsw_l2.sql index 70bb50a51..673f7c551 100644 --- a/test/sql/hnsw_l2.sql +++ b/test/sql/hnsw_l2.sql @@ -6,11 +6,11 @@ CREATE INDEX ON t USING hnsw (val vector_l2_ops); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; -SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector); +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; +SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector) LIMIT 5; SELECT COUNT(*) FROM t; TRUNCATE t; -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; DROP TABLE t; diff --git a/test/sql/hnsw_unlogged.sql b/test/sql/hnsw_unlogged.sql index 2efcc9554..6a21c376a 100644 --- a/test/sql/hnsw_unlogged.sql +++ b/test/sql/hnsw_unlogged.sql @@ -4,6 +4,6 @@ CREATE UNLOGGED TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING hnsw (val vector_l2_ops); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; DROP TABLE t; diff --git a/test/sql/ivfflat_cosine.sql b/test/sql/ivfflat_cosine.sql index a891a0403..de2ed11d4 100644 --- a/test/sql/ivfflat_cosine.sql +++ b/test/sql/ivfflat_cosine.sql @@ -6,8 +6,8 @@ CREATE INDEX ON t USING ivfflat (val vector_cosine_ops) WITH (lists = 1); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <=> '[3,3,3]'; -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]') t2; -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector)) t2; +SELECT * FROM t ORDER BY val <=> '[3,3,3]' LIMIT 5; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> '[0,0,0]' LIMIT 5) t2; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <=> (SELECT NULL::vector) LIMIT 5) t2; DROP TABLE t; diff --git a/test/sql/ivfflat_ip.sql b/test/sql/ivfflat_ip.sql index 1560c550a..d8f58fbcd 100644 --- a/test/sql/ivfflat_ip.sql +++ b/test/sql/ivfflat_ip.sql @@ -6,7 +6,7 @@ CREATE INDEX ON t USING ivfflat (val vector_ip_ops) WITH (lists = 1); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <#> '[3,3,3]'; -SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector)) t2; +SELECT * FROM t ORDER BY val <#> '[3,3,3]' LIMIT 5; +SELECT COUNT(*) FROM (SELECT * FROM t ORDER BY val <#> (SELECT NULL::vector) LIMIT 5) t2; DROP TABLE t; diff --git a/test/sql/ivfflat_l2.sql b/test/sql/ivfflat_l2.sql index c309519e6..e4f7c2ba2 100644 --- a/test/sql/ivfflat_l2.sql +++ b/test/sql/ivfflat_l2.sql @@ -6,11 +6,11 @@ CREATE INDEX ON t USING ivfflat (val vector_l2_ops) WITH (lists = 1); INSERT INTO t (val) VALUES ('[1,2,4]'); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; -SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector); +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; +SELECT * FROM t ORDER BY val <-> (SELECT NULL::vector) LIMIT 5; SELECT COUNT(*) FROM t; TRUNCATE t; -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; DROP TABLE t; diff --git a/test/sql/ivfflat_unlogged.sql b/test/sql/ivfflat_unlogged.sql index fb890066c..b54a05ac3 100644 --- a/test/sql/ivfflat_unlogged.sql +++ b/test/sql/ivfflat_unlogged.sql @@ -4,6 +4,6 @@ CREATE UNLOGGED TABLE t (val vector(3)); INSERT INTO t (val) VALUES ('[0,0,0]'), ('[1,2,3]'), ('[1,1,1]'), (NULL); CREATE INDEX ON t USING ivfflat (val vector_l2_ops) WITH (lists = 1); -SELECT * FROM t ORDER BY val <-> '[3,3,3]'; +SELECT * FROM t ORDER BY val <-> '[3,3,3]' LIMIT 5; DROP TABLE t; diff --git a/test/t/007_ivfflat_inserts.pl b/test/t/007_ivfflat_inserts.pl index dd7a95d7c..dc16108d4 100644 --- a/test/t/007_ivfflat_inserts.pl +++ b/test/t/007_ivfflat_inserts.pl @@ -49,7 +49,7 @@ sub idx_scan $count = $node->safe_psql("postgres", qq( SET enable_seqscan = off; SET ivfflat.probes = 100; - SELECT COUNT(*) FROM (SELECT v FROM tst ORDER BY v <-> (SELECT v FROM tst LIMIT 1)) t; + SELECT COUNT(*) FROM (SELECT v FROM tst ORDER BY v <-> (SELECT v FROM tst LIMIT 1) LIMIT 20000) t; )); is($count, $expected); is(idx_scan(), 1); diff --git a/test/t/014_hnsw_inserts.pl b/test/t/014_hnsw_inserts.pl index f69bcd624..eb9dc917a 100644 --- a/test/t/014_hnsw_inserts.pl +++ b/test/t/014_hnsw_inserts.pl @@ -42,7 +42,7 @@ sub idx_scan my $count = $node->safe_psql("postgres", qq( SET enable_seqscan = off; - SELECT COUNT(*) FROM (SELECT v FROM tst ORDER BY v <-> (SELECT v FROM tst LIMIT 1)) t; + SELECT COUNT(*) FROM (SELECT v FROM tst ORDER BY v <-> (SELECT v FROM tst LIMIT 1) LIMIT 20) t; )); is($count, 10); @@ -63,7 +63,7 @@ sub idx_scan my $count = $node->safe_psql("postgres", qq( SET enable_seqscan = off; SET hnsw.ef_search = 1000; - SELECT COUNT(*) FROM (SELECT v FROM tst ORDER BY v <-> (SELECT v FROM tst LIMIT 1)) t; + SELECT COUNT(*) FROM (SELECT v FROM tst ORDER BY v <-> (SELECT v FROM tst LIMIT 1) LIMIT 1000) t; )); # Elements may lose all incoming connections with the HNSW algorithm # Vacuuming can fix this if one of the elements neighbors is deleted diff --git a/test/t/015_hnsw_duplicates.pl b/test/t/015_hnsw_duplicates.pl index 7e11deed3..874ec43eb 100644 --- a/test/t/015_hnsw_duplicates.pl +++ b/test/t/015_hnsw_duplicates.pl @@ -26,7 +26,7 @@ sub test_duplicates my $res = $node->safe_psql("postgres", qq( SET enable_seqscan = off; SET hnsw.ef_search = 1; - SELECT COUNT(*) FROM (SELECT * FROM tst ORDER BY v <-> '[1,1,1]') t; + SELECT COUNT(*) FROM (SELECT * FROM tst ORDER BY v <-> '[1,1,1]' LIMIT 20) t; )); is($res, 10); } diff --git a/test/t/018_hnsw_filtering.pl b/test/t/018_hnsw_filtering.pl index 074aba592..3053f565c 100644 --- a/test/t/018_hnsw_filtering.pl +++ b/test/t/018_hnsw_filtering.pl @@ -17,11 +17,12 @@ # Create table and index $node->safe_psql("postgres", "CREATE EXTENSION vector;"); -$node->safe_psql("postgres", "CREATE TABLE tst (i int4, v vector($dim), c int4);"); +$node->safe_psql("postgres", "CREATE TABLE tst (i int4, v vector($dim), c int4, t text);"); $node->safe_psql("postgres", - "INSERT INTO tst SELECT i, ARRAY[$array_sql], i % $nc FROM generate_series(1, 10000) i;" + "INSERT INTO tst SELECT i, ARRAY[$array_sql], i % $nc, 'test ' || i FROM generate_series(1, 10000) i;" ); $node->safe_psql("postgres", "CREATE INDEX idx ON tst USING hnsw (v vector_l2_ops);"); +$node->safe_psql("postgres", "ANALYZE tst;"); # Generate query my @r = (); @@ -36,8 +37,7 @@ my $explain = $node->safe_psql("postgres", qq( EXPLAIN ANALYZE SELECT i FROM tst WHERE c = $c ORDER BY v <-> '$query' LIMIT $limit; )); -# TODO Do not use index -like($explain, qr/Index Scan using idx/); +like($explain, qr/Seq Scan/); # Test attribute filtering with few rows removed $explain = $node->safe_psql("postgres", qq( @@ -45,6 +45,30 @@ )); like($explain, qr/Index Scan using idx/); +# Test attribute filtering with few rows removed comparison +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT i FROM tst WHERE c >= 1 ORDER BY v <-> '$query' LIMIT $limit; +)); +like($explain, qr/Index Scan using idx/); + +# Test attribute filtering with many rows removed comparison +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT i FROM tst WHERE c < 1 ORDER BY v <-> '$query' LIMIT $limit; +)); +like($explain, qr/Seq Scan/); + +# Test attribute filtering with few rows removed like +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT i FROM tst WHERE t LIKE '%%test%%' ORDER BY v <-> '$query' LIMIT $limit; +)); +like($explain, qr/Index Scan using idx/); + +# Test attribute filtering with many rows removed like +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT i FROM tst WHERE t LIKE '%%other%%' ORDER BY v <-> '$query' LIMIT $limit; +)); +like($explain, qr/Seq Scan/); + # Test distance filtering $explain = $node->safe_psql("postgres", qq( EXPLAIN ANALYZE SELECT i FROM tst WHERE v <-> '$query' < 1 ORDER BY v <-> '$query' LIMIT $limit; diff --git a/test/t/019_ivfflat_filtering.pl b/test/t/019_ivfflat_filtering.pl index 1a4c9a1ee..19c84f96c 100644 --- a/test/t/019_ivfflat_filtering.pl +++ b/test/t/019_ivfflat_filtering.pl @@ -22,6 +22,7 @@ "INSERT INTO tst SELECT i, ARRAY[$array_sql], i % $nc FROM generate_series(1, 10000) i;" ); $node->safe_psql("postgres", "CREATE INDEX idx ON tst USING ivfflat (v vector_l2_ops) WITH (lists = 100);"); +$node->safe_psql("postgres", "ANALYZE tst;"); # Generate query my @r = (); @@ -36,8 +37,7 @@ my $explain = $node->safe_psql("postgres", qq( EXPLAIN ANALYZE SELECT i FROM tst WHERE c = $c ORDER BY v <-> '$query' LIMIT $limit; )); -# TODO Do not use index -like($explain, qr/Index Scan using idx/); +like($explain, qr/Seq Scan/); # Test attribute filtering with few rows removed $explain = $node->safe_psql("postgres", qq( @@ -45,6 +45,18 @@ )); like($explain, qr/Index Scan using idx/); +# Test attribute filtering with few rows removed comparison +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT i FROM tst WHERE c >= 1 ORDER BY v <-> '$query' LIMIT $limit; +)); +like($explain, qr/Index Scan using idx/); + +# Test attribute filtering with many rows removed comparison +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT i FROM tst WHERE c < 1 ORDER BY v <-> '$query' LIMIT $limit; +)); +like($explain, qr/Seq Scan/); + # Test distance filtering $explain = $node->safe_psql("postgres", qq( EXPLAIN ANALYZE SELECT i FROM tst WHERE v <-> '$query' < 1 ORDER BY v <-> '$query' LIMIT $limit; @@ -68,8 +80,7 @@ $explain = $node->safe_psql("postgres", qq( EXPLAIN ANALYZE SELECT i FROM tst WHERE v <-> '$query' < 1 ORDER BY v <-> '$query'; )); -# TODO Do not use index -like($explain, qr/Index Scan using idx/); +like($explain, qr/Seq Scan/); # Test attribute index $node->safe_psql("postgres", "CREATE INDEX attribute_idx ON tst (c);"); diff --git a/test/t/020_ivfflat_limit.pl b/test/t/020_ivfflat_limit.pl new file mode 100644 index 000000000..b109209bd --- /dev/null +++ b/test/t/020_ivfflat_limit.pl @@ -0,0 +1,64 @@ +use strict; +use warnings; +use PostgresNode; +use TestLib; +use Test::More; + +# Initialize node +my $node = get_new_node('node'); +$node->init; +$node->start; + +# Create table and index +$node->safe_psql("postgres", "CREATE EXTENSION vector;"); +$node->safe_psql("postgres", "CREATE TABLE tst (v vector(3));"); +$node->safe_psql("postgres", + "INSERT INTO tst SELECT ARRAY[random(), random(), random()] FROM generate_series(1, 1000) i;" +); +$node->safe_psql("postgres", "CREATE INDEX ON tst USING ivfflat (v vector_l2_ops) WITH (lists = 10);"); + +# Test limit +my $explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 100; +)); +like($explain, qr/Index Scan/); + +# Test limit with probes +$explain = $node->safe_psql("postgres", qq( + SET ivfflat.probes = 2; + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 200; +)); +like($explain, qr/Index Scan/); + +# Test limit + offset +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 90 OFFSET 10; +)); +like($explain, qr/Index Scan/); + +# Test limit > expected tuples +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 101; +)); +like($explain, qr/Seq Scan/); + +# Test limit > expected tuples with probes +$explain = $node->safe_psql("postgres", qq( + SET ivfflat.probes = 2; + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 201; +)); +like($explain, qr/Seq Scan/); + +# Test limit + offset > expected tuples +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 91 OFFSET 10; +)); +like($explain, qr/Seq Scan/); + +# Test no limit +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]'; +)); +like($explain, qr/Seq Scan/); + +done_testing(); diff --git a/test/t/021_hnsw_limit.pl b/test/t/021_hnsw_limit.pl new file mode 100644 index 000000000..68ec87748 --- /dev/null +++ b/test/t/021_hnsw_limit.pl @@ -0,0 +1,62 @@ +use strict; +use warnings; +use PostgresNode; +use TestLib; +use Test::More; + +# Initialize node +my $node = get_new_node('node'); +$node->init; +$node->start; + +# Create table and index +$node->safe_psql("postgres", "CREATE EXTENSION vector;"); +$node->safe_psql("postgres", "CREATE TABLE tst (v vector(3));"); +$node->safe_psql("postgres", + "INSERT INTO tst SELECT ARRAY[random(), random(), random()] FROM generate_series(1, 1000) i;" +); +$node->safe_psql("postgres", "CREATE INDEX ON tst USING hnsw (v vector_l2_ops);"); + +# Test limit +my $explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 40; +)); +like($explain, qr/Index Scan/); + +# Test limit with CTE +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE WITH cte AS (SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 40) SELECT * FROM cte; +)); +like($explain, qr/Index Scan/); + +# Test limit + offset +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 30 OFFSET 10; +)); +like($explain, qr/Index Scan/); + +# Test limit > ef_search +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 41; +)); +like($explain, qr/Seq Scan/); + +# Test limit > ef_search with CTE +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE WITH cte AS (SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 41) SELECT * FROM cte; +)); +like($explain, qr/Seq Scan/); + +# Test limit + offset > ef_search +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 31 OFFSET 10; +)); +like($explain, qr/Seq Scan/); + +# Test no limit +$explain = $node->safe_psql("postgres", qq( + EXPLAIN ANALYZE SELECT * FROM tst ORDER BY v <-> '[1,2,3]'; +)); +like($explain, qr/Seq Scan/); + +done_testing();
^ permalink raw [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-21 21:13  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-01-21 21:13 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

(on src/hnsw.c:104)

The `DEFAULT_INEQ_SEL` check ensures the index is still used for `WHERE v <-> '[1,2,3]' < 1` (when there's an `ORDER BY` and `LIMIT`). This also means it's used for `WHERE v <-> '[1,2,3]' > 1`, which shouldn't really use an index (however, it currently does in existing releases).

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-21 22:37  "jkatz (@jkatz)" <noreply+jkatz@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: jkatz (@jkatz) @ 2024-01-21 22:37 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

(on src/hnsw.c:115)

Suggestion: a comment that this value is derived from `disable_cost` in `src/backend/optimizer/path/costsize.c`,  should that value ever change. Perhaps also move it up into a const at the top of this file or one of the shared headers.

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-21 22:53  "jkatz (@jkatz)" <noreply+jkatz@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: jkatz (@jkatz) @ 2024-01-21 22:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

(on src/hnsw.c:104)

Is there a case where `rinfo->norm_selec` falls outside of `[0.0,1.0]`?

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-21 23:08  "jkatz (@jkatz)" <noreply+jkatz@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: jkatz (@jkatz) @ 2024-01-21 23:08 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Left some minor stylistic comments.

I'm still thinking through this one and need to test. I primarily stared at HNSW for a bit. I agree with the initial clause that if there's no limit, then don't use the index. However, I'm still grappling with a few concepts:

* Selectivity is low but the column in question is not indexed, which could yield a faster pgvector index scan. OTOH, that still could yield results that are not relevant. There's an argument that the other column should be indexed, but we can't necessarily assume that doing so makes sense for that domain. This leads to...
* Impact on HQANN, where in theory selectivity is low but we want a targeted scan through the index

I think for a bunch of cases, HQANN would help produce a fast in absence of an alternative filter. I saw an example with a `LIKE '%...%'` where that selectivity score would matter more. But as mentioned, I'm still thinking / looking for ideas on the above.

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 00:16  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-01-22 00:16 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

(on src/hnsw.c:104)

From `pathnodes.h`:

```text
selectivity for "normal" (JOIN_INNER) semantics; -1 if not yet set; >1 means a redundant clause
```

I'm not sure if there are cases where it'll be out of that range when they get to this function, but seems better to be safe.

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 00:18  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-01-22 00:18 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

(on src/hnsw.c:115)

Sounds good - will add more comments / make const once we decide on an approach.

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 00:22  "hlinnaka (@hlinnaka)" <noreply+hlinnaka@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: hlinnaka (@hlinnaka) @ 2024-01-22 00:22 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

This approach seems pretty inflexible to me. Off the top of my head, some scenarios where this can go wrong:

1. There might be a LIMIT at the top of the query, but the index scan is part of a larger plan. Consider a partitioned table, for example. The hnsw.ef_search parameter would apply to each scan separately, so the combined end result can have many more results, which might be fine. Or UNION. Or a join that produces many output rows for each row from the index scan.

2. There might be joins which filter rows, not just plain quals on the table itself.

3. LIMIT can be a parameter, e.g. `LIMIT $1`, not known at planning time.

4. There is no LIMIT, but the the client only fetches X first rows from the cursor.

5. Selectivity estimates can be very poor. If the planner estimates that a clause is very selective, but in reality it's not, this would heavily favor a seqscan even though an index scan would be appropriate. This is of course always a problem with planning any query, but this PR introduces a very strong bias on what is considered.


^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 01:14  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-01-22 01:14 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Thanks for the feedback.

@jkatz The issue with low selectivity using a vector index is the query will likely return few or no results, which happens now (#263). Also, HQANN should be able to have its own logic if needed.

@hlinnaka Will try to do some testing around 1 - 3. I think it's probably fine to not use an index for 4 (users who want to use an index can add a limit) and 5 (users can run `ANALYZE` or use extended statistics to try and fix).

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 01:19  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-01-22 01:19 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Apart from the specific implementation, I'd be curious to hear thoughts on whether the test cases make sense. For instance, does it make sense to use an index for the following query with the default `ef_search` of 40?

```sql
SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 41; -- or 10000
```

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 02:11  "jkatz (@jkatz)" <noreply+jkatz@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: jkatz (@jkatz) @ 2024-01-22 02:11 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

> The issue with low selectivity using a vector index is the query will likely return few or no results, which happens now (https://github.com/pgvector/pgvector/issues/263).

@ankane I understand that -- but I'm not sure if measuring on selectivity alone will account for this. For example, a selectivity of 0.05 on a dataset of 100K has a far higher chance of not returning enough tuples vs. a dataset of 100MM.

> Apart from the specific implementation, I'd be curious to hear thoughts on whether the test cases make sense. For instance, does it make sense to use an index for the following query with the default ef_search of 40?
> ```sql
> SELECT * FROM tst ORDER BY v <-> '[1,2,3]' LIMIT 41; -- or 10000
> ```

🤔 I wonder if another approach would be to error when there's a LIMIT/ef_search mismatch.

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 02:31  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-01-22 02:31 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

> I'm not sure if measuring on selectivity alone will account for this. For example, a selectivity of 0.05 on a dataset of 100K has a far higher chance of not returning enough tuples vs. a dataset of 100MM.

The odds should be the same with the same `ef_search`. The index will find `ef_search` results, and only 5% of them will match.

> I wonder if another approach would be to error when there's a LIMIT/ef_search mismatch.

That'd be another option (but not sure I like it as much as the others).

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-01-22 04:43  "jkatz (@jkatz)" <noreply+jkatz@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: jkatz (@jkatz) @ 2024-01-22 04:43 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

> The odds should be the same with the same ef_search. The index will find ef_search results, and only 5% of them will match.

I'm not following. The selectivity in the patch is being measured from the reduction in tuples in the table based on the non-IVFFLAT/HNSW filters. I do agree that the odds are the same if we're only considering selectivity. But if we're considering the actual cardinality, the odds do change. In the example I gave, 5% of 100K is 5K, whereas 5% of 100MM is 5MM, which is a far greater set of tuples to search from.

But -- and as this patch would address -- if the filtering is occurring as a result of the index, then flipping to a different index scan would increase the number of tuples returned, though possibly at a performance cost.

>> I wonder if another approach would be to error when there's a LIMIT/ef_search mismatch.
> That'd be another option (but not sure I like it as much as the others).

This at least gives a deterministic error that an app developer can adapt to. This would be encountered at programming time, and the developer can then adapt the query to use a higher `hnsw.ef_search` value, which could be adapted into the code.  This avoids a "surprise" behavior in a query plan flip that the developer doesn't expect, and as a result has to do additional debugging.

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-10-11 08:06  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-10-11 08:06 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

The updated cost functions + iterative search should help a lot with this, so will close this out. Thanks for the feedback.

For HNSW, it may still choose the index in cases where there will be too few results since iterative search will stop when it exceeds `work_mem` (which happens after ~20k tuples with the default `work_mem`). It seems like there's not really a great way to tell the planner the index has a cutoff (since none of the built-in index AMs need it).

^ permalink  raw  [nested|flat] 15+ messages in thread

* Re: [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low
@ 2024-10-11 08:06  "ankane (@ankane)" <noreply+ankane@github.com>
  13 siblings, 0 replies; 15+ messages in thread

From: ankane (@ankane) @ 2024-10-11 08:06 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 15+ messages in thread


end of thread, other threads:[~2024-10-11 08:06 UTC | newest]

Thread overview: 15+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-01-21 20:48 [pgvector/pgvector] PR #424: Update cost estimation to not use index when expected tuples is too low "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-21 21:13 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-21 22:37 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-01-21 22:53 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-01-21 23:08 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-01-22 00:16 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-22 00:18 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-22 00:22 ` "hlinnaka (@hlinnaka)" <noreply+hlinnaka@github.com>
2024-01-22 01:14 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-22 01:19 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-22 02:11 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-01-22 02:31 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-22 04:43 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-10-11 08:06 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-10-11 08:06 ` "ankane (@ankane)" <noreply+ankane@github.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox