ruvector/crates/ruvector-postgres/sql
rUv e860b24b89 fix: HNSW index bugs, agent/SPARQL crashes, lru security (#152, #164, #167, #171, #148)
HNSW fixes:
- Extract vector dimensions from column atttypmod instead of hardcoding 128,
  which caused corrupted indexes for non-128-dim embeddings (#171, #164)
- Add page boundary checks in read_vector/read_neighbors to prevent
  segfaults on large tables with >100K rows (#164)
- Use BinaryHeap::into_sorted_vec() for deterministic result ordering
  instead of into_iter() which yields arbitrary order (#171)
- Handle non-kNN scans (COUNT, WHERE IS NOT NULL) gracefully by returning
  false from hnsw_gettuple when no ORDER BY operator is present (#152)

Agent/SPARQL fixes:
- Fix SQL type mismatch: ruvector_list_agents() and
  ruvector_find_agents_by_capability() now use RETURNS TABLE(...)
  matching the Rust TableIterator signatures instead of RETURNS SETOF jsonb (#167)
- Add empty query validation to ruvector_sparql() and
  ruvector_sparql_json() to prevent panics on invalid input (#167)
- Change workspace panic profile from "abort" to "unwind" so pgrx can
  convert Rust panics to PostgreSQL errors instead of killing the backend (#167)

Security:
- Bump lru dependency from 0.12 to 0.16 in ruvector-graph, ruvector-cli,
  and ruvLLM to resolve GHSA-xpfx-fvgv-hgqp Stacked Borrows violation (#148)

Version bumps: workspace 2.0.3, ruvector-postgres 2.0.2

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 06:15:00 +00:00
..
access_methods.sql feat(postgres): Add HNSW index and embedding functions support (#62) 2025-12-09 11:14:52 -05:00
embeddings.sql feat(postgres): Add HNSW index and embedding functions support (#62) 2025-12-09 11:14:52 -05:00
graph_examples.sql feat(postgres): Add 53 SQL function definitions for all advanced modules (#46) 2025-12-02 22:49:29 -05:00
hnsw_index.sql feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
ivfflat_am.sql feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
routing_example.sql feat(postgres): Add 53 SQL function definitions for all advanced modules (#46) 2025-12-02 22:49:29 -05:00
ruvector--0.1.0.sql fix(ruvector-postgres): IVFFlat storage, HNSW query, SQL injection fixes 2025-12-26 04:05:58 +00:00
ruvector--2.0.0.sql fix: HNSW index bugs, agent/SPARQL crashes, lru security (#152, #164, #167, #171, #148) 2026-02-15 06:15:00 +00:00