pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feed[pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
8+ messages / 5 participants
[nested] [flat]
* [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2025-05-26 07:52 "developerayuva (@developerayuva)" <noreply+developerayuva@github.com>
0 siblings, 0 replies; 8+ messages in thread
From: developerayuva (@developerayuva) @ 2025-05-26 07:52 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi all,
I observed some unexpected behavior when using the vector extension with partitioned tables and HNSW indexing. I wanted to clarify why an index scan is used in one case but not in another, despite similar query patterns.
## Case I
```
script=> \d+ vector_collection2
Partitioned table "public.vector_collection2"
Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
-----------+-----------+-----------+----------+---------+----------+-------------+--------------+-------------
id | integer | | not null | | plain | | |
embedding | vector(5) | | | | external | | |
Partition key: HASH (id)
Indexes:
"vector_collection2_pkey" PRIMARY KEY, btree (id)
"vector_collection2_embedding_idx" hnsw (embedding vector_l2_ops) WITH (m='8', ef_construction='16')
Partitions: vector_collection2_ts00001 FOR VALUES FROM (MINVALUE) TO ('-6917529027641081856'),
vector_collection2_ts00002 FOR VALUES FROM ('-6917529027641081856') TO ('-4611686018427387904'),
vector_collection2_ts00003 FOR VALUES FROM ('-4611686018427387904') TO ('-2305843009213693952'),
vector_collection2_ts00004 FOR VALUES FROM ('-2305843009213693952') TO ('0')
script=> reset enable_seqscan ;
RESET
script=> reset enable_indexscan ;
RESET
script=> SELECT COUNT(*) FROM vector_collection2;
count
---------
4997869
(1 row)
-- Fetching both id and embedding
script=> explain analyze SELECT id, embedding FROM public.vector_collection2 ORDER BY (embedding OPERATOR(public.<->) '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::public.vector) ASC NULLS LAST;
QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Merge Append (cost=262.30..875089.46 rows=4997869 width=37) (actual time=3.000..37.168 rows=160 loops=1)
Sort Key: ((vector_collection2.embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector))
-> Index Scan using vector_collection2_ts00001_embedding_idx on vector_collection2_ts00001 vector_collection2_1 (cost=65.57..199836.08 rows=1248204 width=37) (actual time=0.651..19.815 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00002_embedding_idx on vector_collection2_ts00002 vector_collection2_2 (cost=65.57..200180.46 rows=1250423 width=37) (actual time=0.725..5.305 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00003_embedding_idx on vector_collection2_ts00003 vector_collection2_3 (cost=65.57..200230.06 rows=1250703 width=37) (actual time=0.854..8.316 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00004_embedding_idx on vector_collection2_ts00004 vector_collection2_4 (cost=65.56..199874.78 rows=1248539 width=37) (actual time=0.761..3.416 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
Planning Time: 0.383 ms
Execution Time: 37.503 ms
(12 rows)
-- Fetching only id
script=> explain analyze SELECT id FROM public.vector_collection2 ORDER BY (embedding OPERATOR(public.<->) '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::public.vector) ASC NULLS LAST;
QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Gather Merge (cost=363927.94..849865.94 rows=4164892 width=12) (actual time=6999.244..13603.405 rows=4997869 loops=1)
Workers Planned: 2
Workers Launched: 2
-> Sort (cost=362927.92..368134.04 rows=2082446 width=12) (actual time=6960.759..8275.637 rows=1665956 loops=3)
Sort Key: ((vector_collection2.embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector))
Sort Method: external merge Disk: 42272kB
Worker 0: Sort Method: external merge Disk: 42536kB
Worker 1: Sort Method: external merge Disk: 42544kB
-> Parallel Append (cost=0.00..73193.80 rows=2082446 width=12) (actual time=0.888..3575.830 rows=1665956 loops=3)
-> Parallel Seq Scan on vector_collection2_ts00003 vector_collection2_3 (cost=0.00..15711.08 rows=521126 width=12) (actual time=0.923..1310.306 rows=1250703 loops=1)
-> Parallel Seq Scan on vector_collection2_ts00002 vector_collection2_2 (cost=0.00..15707.62 rows=521010 width=12) (actual time=0.667..1475.575 rows=1250423 loops=1)
-> Parallel Seq Scan on vector_collection2_ts00004 vector_collection2_4 (cost=0.00..15683.81 rows=520225 width=12) (actual time=0.657..470.241 rows=416180 loops=3)
-> Parallel Seq Scan on vector_collection2_ts00001 vector_collection2_1 (cost=0.00..15679.06 rows=520085 width=12) (actual time=0.534..684.244 rows=624102 loops=2)
Planning Time: 0.369 ms
Execution Time: 16376.657 ms
(15 rows)
```
## Case II
```
vector100k_part=> \d+ vector_items
Partitioned table "public.vector_items"
Column | Type | Collation | Nullable | Default | Storage | Compression | Stats target | Description
-----------+-----------+-----------+----------+------------------------------------------+----------+-------------+--------------+-------------
id | integer | | not null | nextval('vector_items_id_seq'::regclass) | plain | | |
embedding | vector(5) | | | | external | | |
Partition key: HASH (id)
Indexes:
"vector_items_pkey" PRIMARY KEY, btree (id)
"vector_items_embedding_idx" hnsw (embedding vector_l2_ops) WITH (m='16', ef_construction='64')
Partitions: vector_items_p0 FOR VALUES WITH (modulus 4, remainder 0),
vector_items_p1 FOR VALUES WITH (modulus 4, remainder 1),
vector_items_p2 FOR VALUES WITH (modulus 4, remainder 2),
vector_items_p3 FOR VALUES WITH (modulus 4, remainder 3)
vector100k_part=> reset enable_seqscan;
RESET
vector100k_part=> reset enable_indexscan ;
RESET
vector100k_part=> SELECT COUNT(*) FROM vector_items;
count
--------
100000
(1 row)
vector100k_part=> explain analyze SELECT id, embedding FROM public.vector_items ORDER BY (embedding OPERATOR(public.<->) '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::public.vector) ASC NULLS LAST;
QUERY PLAN
-----------------------------------------------------------------------------------------------------------------------------------------------
Sort (cost=13528.82..13778.82 rows=100000 width=37) (actual time=73.779..86.356 rows=100000 loops=1)
Sort Key: ((vector_items.embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector))
Sort Method: external merge Disk: 4896kB
-> Append (cost=0.00..2487.00 rows=100000 width=37) (actual time=0.013..26.059 rows=100000 loops=1)
-> Seq Scan on vector_items_p0 vector_items_1 (cost=0.00..499.07 rows=25126 width=37) (actual time=0.012..4.607 rows=25126 loops=1)
-> Seq Scan on vector_items_p1 vector_items_2 (cost=0.00..496.22 rows=24978 width=37) (actual time=0.011..4.497 rows=24978 loops=1)
-> Seq Scan on vector_items_p2 vector_items_3 (cost=0.00..496.14 rows=24971 width=37) (actual time=0.009..4.542 rows=24971 loops=1)
-> Seq Scan on vector_items_p3 vector_items_4 (cost=0.00..495.56 rows=24925 width=37) (actual time=0.013..4.579 rows=24925 loops=1)
Planning Time: 0.257 ms
Execution Time: 96.241 ms
(10 rows)
vector100k_part=> explain analyze SELECT id FROM public.vector_items ORDER BY (embedding OPERATOR(public.<->) '[0.08761761,0.16212644,0.061548516,0
.099646576,0.36062342]'::public.vector) ASC NULLS LAST;
QUERY PLAN
-----------------------------------------------------------------------------------------------------------------------------------------------
Sort (cost=10791.82..11041.82 rows=100000 width=12) (actual time=68.310..79.159 rows=100000 loops=1)
Sort Key: ((vector_items.embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector))
Sort Method: external merge Disk: 2552kB
-> Append (cost=0.00..2487.00 rows=100000 width=12) (actual time=0.011..29.633 rows=100000 loops=1)
-> Seq Scan on vector_items_p0 vector_items_1 (cost=0.00..499.07 rows=25126 width=12) (actual time=0.010..4.837 rows=25126 loops=1)
-> Seq Scan on vector_items_p1 vector_items_2 (cost=0.00..496.22 rows=24978 width=12) (actual time=0.011..4.769 rows=24978 loops=1)
-> Seq Scan on vector_items_p2 vector_items_3 (cost=0.00..496.14 rows=24971 width=12) (actual time=0.009..4.742 rows=24971 loops=1)
-> Seq Scan on vector_items_p3 vector_items_4 (cost=0.00..495.56 rows=24925 width=12) (actual time=0.016..4.758 rows=24925 loops=1)
Planning Time: 0.140 ms
Execution Time: 89.018 ms
(10 rows)
```
### Questions:
1. Why is the first query (on `vector_collection2`) using index scans despite no `LIMIT` and no explicit enable of index scans? Could this be due to the size of the dataset or different HNSW parameters (`m` and `ef_construction`)?
2. In Case I - Why when I removed embedding from output it falls back to SeqScan? What could be the reasons for this?
^ permalink raw [nested|flat] 8+ messages in thread
* Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2025-05-27 02:02 "ankane (@ankane)" <noreply+ankane@github.com>
6 siblings, 0 replies; 8+ messages in thread
From: ankane (@ankane) @ 2025-05-27 02:02 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hi @developerayuva, both queries in Case I should be doing a seq scan.
1. What version of pgvector are you on?
2. Does running `ANALYZE vector_collection2;` fix the first query?
3. What's the output of `EXPLAIN ANALYZE` with `SET enable_seqscan = off;` for the first query?
^ permalink raw [nested|flat] 8+ messages in thread
* Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2025-05-27 02:20 "developerayuva (@developerayuva)" <noreply+developerayuva@github.com>
6 siblings, 0 replies; 8+ messages in thread
From: developerayuva (@developerayuva) @ 2025-05-27 02:20 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hello @ankane Thanks for taking a look. Here are the required output:
```
script=> SELECT extversion FROM pg_extension WHERE extname = 'vector';
extversion
------------
0.8.0
(1 row)
script=> ANALYZE vector_collection2;
ANALYZE
script=> explain analyze SELECT id, embedding FROM public.vector_collection2 ORDER BY (embedding OPERATOR(public.<->) '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::public.vector) ASC NULLS LAST;
QUERY PLAN
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Merge Append (cost=262.30..875089.46 rows=4997869 width=37) (actual time=798.841..868.780 rows=160 loops=1)
Sort Key: ((vector_collection2.embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector))
-> Index Scan using vector_collection2_ts00001_embedding_idx on vector_collection2_ts00001 vector_collection2_1 (cost=65.57..199836.08 rows=1248204 width=37) (actual time=214.668..238.359 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00002_embedding_idx on vector_collection2_ts00002 vector_collection2_2 (cost=65.57..200180.46 rows=1250423 width=37) (actual time=197.600..218.287 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00003_embedding_idx on vector_collection2_ts00003 vector_collection2_3 (cost=65.57..200230.06 rows=1250703 width=37) (actual time=198.292..208.106 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00004_embedding_idx on vector_collection2_ts00004 vector_collection2_4 (cost=65.56..199874.78 rows=1248539 width=37) (actual time=188.271..203.666 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
Planning Time: 5.218 ms
Execution Time: 869.131 ms
(12 rows)
script=> SET enable_seqscan = off;
SET
script=> explain analyze SELECT id, embedding FROM public.vector_collection2 ORDER BY (embedding OPERATOR(public.<->) '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::public.vector) ASC NULLS LAST;
QUERY PLAN
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Merge Append (cost=262.30..875089.46 rows=4997869 width=37) (actual time=2.459..3.247 rows=160 loops=1)
Sort Key: ((vector_collection2.embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector))
-> Index Scan using vector_collection2_ts00001_embedding_idx on vector_collection2_ts00001 vector_collection2_1 (cost=65.57..199836.08 rows=1248204 width=37) (actual time=0.704..0.848 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00002_embedding_idx on vector_collection2_ts00002 vector_collection2_2 (cost=65.57..200180.46 rows=1250423 width=37) (actual time=0.578..0.718 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00003_embedding_idx on vector_collection2_ts00003 vector_collection2_3 (cost=65.57..200230.06 rows=1250703 width=37) (actual time=0.616..0.768 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
-> Index Scan using vector_collection2_ts00004_embedding_idx on vector_collection2_ts00004 vector_collection2_4 (cost=65.56..199874.78 rows=1248539 width=37) (actual time=0.552..0.708 rows=40 loops=1)
Order By: (embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector)
Planning Time: 0.415 ms
Execution Time: 3.530 ms
(12 rows)
script=> RESET enable_seqscan;
RESET
script=> SET enable_indexscan = off;
SET
script=> explain analyze SELECT id, embedding FROM public.vector_collection2 ORDER BY (embedding OPERATOR(public.<->) '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::public.vector) ASC NULLS LAST;
QUERY PLAN
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Gather Merge (cost=406634.94..892572.94 rows=4164892 width=37) (actual time=7162.684..13752.395 rows=4997869 loops=1)
Workers Planned: 2
Workers Launched: 2
-> Sort (cost=405634.92..410841.04 rows=2082446 width=37) (actual time=7093.260..8409.104 rows=1665956 loops=3)
Sort Key: ((vector_collection2.embedding <-> '[0.08761761,0.16212644,0.061548516,0.099646576,0.36062342]'::vector))
Sort Method: external merge Disk: 79896kB
Worker 0: Sort Method: external merge Disk: 81328kB
Worker 1: Sort Method: external merge Disk: 83416kB
-> Parallel Append (cost=0.00..73193.80 rows=2082446 width=37) (actual time=0.883..3428.405 rows=1665956 loops=3)
-> Parallel Seq Scan on vector_collection2_ts00003 vector_collection2_3 (cost=0.00..15711.08 rows=521126 width=37) (actual time=0.711..1311.464 rows=1250703 loops=1)
-> Parallel Seq Scan on vector_collection2_ts00002 vector_collection2_2 (cost=0.00..15707.62 rows=521010 width=37) (actual time=0.680..1277.804 rows=1250423 loops=1)
-> Parallel Seq Scan on vector_collection2_ts00004 vector_collection2_4 (cost=0.00..15683.81 rows=520225 width=37) (actual time=1.024..434.863 rows=416180 loops=3)
-> Parallel Seq Scan on vector_collection2_ts00001 vector_collection2_1 (cost=0.00..15679.06 rows=520085 width=37) (actual time=0.626..666.846 rows=624102 loops=2)
Planning Time: 0.415 ms
Execution Time: 16431.556 ms
(15 rows)
```
^ permalink raw [nested|flat] 8+ messages in thread
* Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2025-05-27 02:37 "ankane (@ankane)" <noreply+ankane@github.com>
6 siblings, 0 replies; 8+ messages in thread
From: ankane (@ankane) @ 2025-05-27 02:37 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Thanks (and thanks for including `enable_indexscan = off`, which is what I meant for 3). It looks like the cost estimate of the index scan is cheaper than the seq scan for some reason. This seems like a pretty uncommon setup (5-dimensional vectors w/ m = 8 w/ partitioning), but will try to spend some time this week to see why.
^ permalink raw [nested|flat] 8+ messages in thread
* Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2025-05-28 23:58 "ankane (@ankane)" <noreply+ankane@github.com>
6 siblings, 0 replies; 8+ messages in thread
From: ankane (@ankane) @ 2025-05-28 23:58 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
From what I can tell, this is due to the cost of an external merge sort (for the seq scan) being very high for the query with the default `work_mem`. I believe the only way to address this would be to increase the total cost of the HNSW scan, but would like to get a framework in-place for better testing cost estimation before this.
^ permalink raw [nested|flat] 8+ messages in thread
* Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2026-02-11 04:44 "arup-chauhan (@arup-chauhan)" <noreply+arup-chauhan@github.com>
6 siblings, 0 replies; 8+ messages in thread
From: arup-chauhan (@arup-chauhan) @ 2026-02-11 04:44 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Hey @ankane, this looks interesting, and I would like to work on this!
Based on your analysis, it sounds like the planner is preferring the HNSW path because the estimated cost of the external merge sort (for the seq scan) is dominating under the default work_mem.
I am thinking to move forward by doing this:
• Building a minimal reproducible benchmark that varies:
• work_mem
• table size
• vector dimensions
• HNSW parameters (m, ef_construction)
• Capturing planner decisions (EXPLAIN (ANALYZE, BUFFERS)) across these configurations
• Comparing estimated vs actual cost for:
• Seq Scan + Sort
• HNSW Index Scan (no LIMIT)
• Proposing an incremental adjustment to HNSW cost estimation if we consistently see underestimation
Would that be a reasonable first step toward putting a better cost-estimation framework in place?
^ permalink raw [nested|flat] 8+ messages in thread
* Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2026-09-21 11:37 "oliness (@oliness)" <noreply+oliness@github.com>
6 siblings, 0 replies; 8+ messages in thread
From: oliness (@oliness) @ 2026-09-21 11:37 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
PR to make hnswcostestimate and ivfflatcostestimate reject the index when the planner knows every row is needed: https://github.com/pgvector/pgvector/pull/1031
^ permalink raw [nested|flat] 8+ messages in thread
* Re: [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan
@ 2026-09-25 20:20 "OmkarPalika (@OmkarPalika)" <noreply+OmkarPalika@github.com>
6 siblings, 0 replies; 8+ messages in thread
From: OmkarPalika (@OmkarPalika) @ 2026-09-25 20:20 UTC (permalink / raw)
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
@ankane, in May 2025 you said on this issue that you would want a framework in place for better testing cost estimation before changing the HNSW cost. I built something adjacent while benchmarking filtered recall, so I am posting the measurements in case they are useful here.
PostgreSQL 17, pgvector 0.8.6, 1M rows, HNSW `m=16, ef_construction=64`. Stepping filter selectivity in 0.1% increments to find where the planner switches between a `bitmap+sort` exact plan and HNSW:
| filter column | `pg_stats.correlation` | exact plan wins up to |
|---|---|---|
| `id` | 1.00 | ~9,670 rows |
| `bucket_corr` | 0.10 | ~1,000–2,000 rows |
| `bucket_multi` | -0.01 | ~1,000–2,000 rows |
| `bucket` | -0.00 | ~1,000–2,000 rows |
The threshold is not a row count, and not a fraction of the table. It tracks heap pages touched: 9,669 sequential ids occupy a short contiguous run, while 1,000 scattered rows touch about 970 pages, and the bitmap heap scan is priced accordingly.
`CLUSTER` on the filter column confirms that reading. `bucket_corr` moves to ~8,000–9,000 rows and `id` drops to ~1,522 — the two columns swap physical ordering and their thresholds swap with them, while the two untouched control columns do not move at all.
The part that may be relevant to #1031: on a filter that correlates with embedding position, the plan flip and a silent wrong answer are the same event. At 0.1% selectivity the exact plan returns a full 10 rows; at 0.2% the planner switches to HNSW and returns **0 rows**, as does every larger selectivity tested. No error. A `SELECT 1 FROM items WHERE <filter> LIMIT 1` existence probe returns in 0.175ms in exactly that case, so the matching rows are present and cheap to reach, just not through the graph.
So at least one part of the cost estimation problem is not about queries that need every row. It is that the HNSW cost does not reflect how many candidates survive the predicate, and the switch lands precisely where survival goes to zero. These queries all carry a `LIMIT`, so a `tuple_fraction` test would not catch them — not an argument against the PR, just a case it does not cover.
Harness and full data: https://github.com/OmkarPalika/pgvector-filtered-recall — every measurement asserts its plan with EXPLAIN before timing, and ground truth comes from an exact scan in the same database rather than a separate pipeline.
If a cost estimation test framework is still wanted, I am happy to run whatever configurations would be useful.
^ permalink raw [nested|flat] 8+ messages in thread
end of thread, other threads:[~2026-09-25 20:20 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-05-26 07:52 [pgvector/pgvector] issue #846: Unexpected use of Index Scan in ANN query without LIMIT or enable_indexscan "developerayuva (@developerayuva)" <noreply+developerayuva@github.com>
2025-05-27 02:02 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-05-27 02:20 ` "developerayuva (@developerayuva)" <noreply+developerayuva@github.com>
2025-05-27 02:37 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-05-28 23:58 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-02-11 04:44 ` "arup-chauhan (@arup-chauhan)" <noreply+arup-chauhan@github.com>
2026-09-21 11:37 ` "oliness (@oliness)" <noreply+oliness@github.com>
2026-09-25 20:20 ` "OmkarPalika (@OmkarPalika)" <noreply+OmkarPalika@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