pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #1001: Feedback on hypothetical pgvector indexes
4+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #1001: Feedback on hypothetical pgvector indexes
@ 2026-07-24 21:18 "varadfromeast (@varadfromeast)" <noreply+varadfromeast@github.com>
  0 siblings, 0 replies; 4+ messages in thread

From: varadfromeast (@varadfromeast) @ 2026-07-24 21:18 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @ankane  — I built a proof of concept for hypothetical pgvector indexes, inspired by HypoPG:
[https://github.com/varadfromeast/pgvector_hypo]
It lets users test whether PostgreSQL would choose an IVFFlat index in EXPLAIN without physically building one. The definition stays in session memory and is never available to normal execution or EXPLAIN ANALYZE.
Because pgvector’s cost function reads lists from the physical index, the prototype currently mirrors pgvector’s IVFFlat page and cost calculations.
I tested it with real SIFT, GloVe, and Last.fm vector datasets. Across 324 combinations of distance type, lists, probes, filters, and limits, the hypothetical and physical indexes had zero planner-choice mismatches. Public CI also passes against pgvector 0.8.0 and 0.8.5.
Before adding HNSW or more PostgreSQL versions, I’d appreciate your advice:
1. Should this remain a separate extension with mirrored cost models?
2. Would pgvector be open to making its cost functions work with hypothetical indexes, allowing HypoPG-style tools to use them?
3. Is this not worth pursuing?
My main concern with a separate extension is keeping its cost model synchronized with pgvector. I’d prefer to align with your direction before taking it further.
Thanks for taking a look !

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

* Re: [pgvector/pgvector] issue #1001: Feedback on hypothetical pgvector indexes
@ 2026-07-25 02:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: ankane (@ankane) @ 2026-07-25 02:41 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @varadfromeast, thanks for sharing. The cost functions don't change often, so it shouldn't be hard to keep them in sync.

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

* Re: [pgvector/pgvector] issue #1001: Feedback on hypothetical pgvector indexes
@ 2026-07-25 02:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: ankane (@ankane) @ 2026-07-25 02:41 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

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

* Re: [pgvector/pgvector] issue #1001: Feedback on hypothetical pgvector indexes
@ 2026-10-25 19:49 ` "ankane (@ankane)" <noreply+ankane@github.com>
  2 siblings, 0 replies; 4+ messages in thread

From: ankane (@ankane) @ 2026-10-25 19:49 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Added basic support for hypothetical indexes in be82eaaf13b053ed2a830b310573a34151a07a72 and followed up in https://github.com/HypoPG/hypopg/issues/102, but feel free to submit a PR if you have other improvements to the cost functions.

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


end of thread, other threads:[~2026-10-25 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-07-24 21:18 [pgvector/pgvector] issue #1001: Feedback on hypothetical pgvector indexes "varadfromeast (@varadfromeast)" <noreply+varadfromeast@github.com>
2026-07-25 02:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-07-25 02:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-10-25 19:49 ` "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