Andrew Kane
64b0e6359b
Updated message [skip ci]
2024-09-21 23:06:30 -07:00
Andrew Kane
0e83213e88
Removed logging [skip ci]
2024-09-21 22:56:35 -07:00
Andrew Kane
f1c7494c35
Added sorting [skip ci]
2024-09-21 22:56:03 -07:00
Andrew Kane
e07d17fe38
Limit work_mem [skip ci]
2024-09-21 22:37:03 -07:00
Andrew Kane
96ff1b992f
Added comment [skip ci]
2024-09-21 16:21:02 -07:00
Andrew Kane
569bf93355
Updated comment [skip ci]
2024-09-21 16:18:56 -07:00
Andrew Kane
72aa53ef54
Only free if streaming [skip ci]
2024-09-21 16:15:00 -07:00
Andrew Kane
4773931b11
Improved code [skip ci]
2024-09-21 12:28:12 -07:00
Andrew Kane
b7564dfc19
Improved logging [skip ci]
2024-09-21 12:23:05 -07:00
Andrew Kane
7dc1b36adc
Merge branch 'master' into hnsw-streaming
2024-09-21 12:16:40 -07:00
Andrew Kane
d5e8fc96a5
Changed HnswPairingHeapNode to HnswSearchCandidate to reduce allocations and improve code
2024-09-21 12:07:44 -07:00
Andrew Kane
5266c208a6
Reduced calls to AddToVisited [skip ci]
2024-09-21 00:32:31 -07:00
Andrew Kane
a0fddf2d1d
Added todo [skip ci]
2024-09-20 16:24:20 -07:00
Andrew Kane
63d5d121a3
Added HNSW_BENCH define [skip ci]
2024-09-20 16:20:27 -07:00
Andrew Kane
39d2ef624a
Merge branch 'master' into hnsw-streaming
2024-09-20 15:24:27 -07:00
Andrew Kane
6d2af6d3f9
Improved code [skip ci]
2024-09-20 15:21:57 -07:00
Andrew Kane
aa0b7ddf70
Removed code for pg12 [skip ci]
2024-09-20 15:19:50 -07:00
Andrew Kane
d499ead3c6
Removed todo [skip ci]
2024-09-20 15:19:23 -07:00
Andrew Kane
f20f5e28b8
Added versioning to tuples
2024-09-20 15:12:39 -07:00
Andrew Kane
3dde18a883
Fixed CI
2024-09-20 14:13:33 -07:00
Andrew Kane
0af1c7dd55
Merge branch 'master' into hnsw-streaming
2024-09-20 13:57:23 -07:00
Andrew Kane
f6ebc5d708
Fixed warning [skip ci]
2024-09-20 13:56:27 -07:00
Andrew Kane
c6493415b2
Added test for streaming recall
2024-09-20 13:04:08 -07:00
Andrew Kane
a6ab5d07c0
Fixed CI
2024-09-19 20:50:51 -07:00
Andrew Kane
aa77346103
Improved code [skip ci]
2024-09-19 19:57:16 -07:00
Andrew Kane
b0da2d95d9
Fixed array_to_sparsevec on Windows [skip ci]
2024-09-19 19:52:16 -07:00
Andrew Kane
3fb05eb847
Added casts for arrays to sparsevec - #604
...
Co-authored-by: Narek Galstyan <narekg@berkeley.edu >
Co-authored-by: Di Qi <di@lantern.dev >
2024-09-19 19:17:05 -07:00
Andrew Kane
b738ffecc1
Dropped support for Postgres 12
2024-09-19 18:13:54 -07:00
Heikki Linnakangas
7117513532
Add error codes to a few errors ( #657 )
...
With elog(), you get XX000 "internal_error", which sounds scary.
It's not self-evident what the right error codes for some of these
errors are, but I tried to use my best judgment.
2024-09-19 18:04:23 -07:00
Andrew Kane
85d877d540
Updated changelog [skip ci]
2024-09-19 18:03:20 -07:00
Jonathan S. Katz
05fb382031
Swap max costing values to align with upstream guidance ( #658 )
...
A feature targeted for PostgreSQL 18 (postgres/postgres@e2225346 )
that makes optimizations around disabled path nodes impacted pgvector
such that PostgreSQL would choose to perform an index scan when it
should have used a different scan (e.g. `SELECT count(*) FROM table`).
Per upstream guidance[1], the recommendation is to switch to using
`get_float8_infinity()`, which achieves the same behavior in backbranches,
and can be adapated to work with the new behavior introduced in PostgreSQL 18.
[1] https://www.postgresql.org/message-id/2281822.1724441531%40sss.pgh.pa.us
2024-09-19 18:01:59 -07:00
Andrew Kane
aaff3de409
Free memory [skip ci]
2024-09-19 15:32:22 -07:00
Andrew Kane
8e1853fbf3
Improved variable name [skip ci]
2024-09-19 15:09:40 -07:00
Andrew Kane
4d1c6ff955
Merge branch 'master' into hnsw-streaming
2024-09-19 14:52:34 -07:00
Andrew Kane
f9d68a061a
Simplified HnswLoadUnvisitedFromMemory [skip ci]
2024-09-19 04:39:46 -07:00
Andrew Kane
4f8ab574c9
Simplified CountElement [skip ci]
2024-09-19 04:32:38 -07:00
Andrew Kane
a15806196e
Keep scan-build happy
2024-09-19 04:02:09 -07:00
Andrew Kane
5c9429a0f8
Reduced memory usage for HNSW index scans
2024-09-19 03:27:35 -07:00
Andrew Kane
4b44d6e745
Updated changelog [skip ci]
2024-09-19 02:42:33 -07:00
Andrew Kane
16ca608f42
Updated AddToVisited to use HnswElementPtr
2024-09-19 02:41:20 -07:00
Andrew Kane
8dde14a736
Reduced memory usage for HNSW index scans
...
Co-authored-by: Heikki Linnakangas <heikki.linnakangas@iki.fi >
2024-09-19 02:17:51 -07:00
Andrew Kane
d74d3065bc
Reduced allocations for pairing heap
2024-09-19 01:59:46 -07:00
Andrew Kane
af1727775d
Added streaming option for HNSW [skip ci]
2024-09-18 14:55:58 -07:00
Andrew Kane
a1b80faa67
Updated readme
2024-09-05 23:13:12 -07:00
Andrew Kane
4af5a127e0
Revert "Improved cleanup for IVFFlat index scans [skip ci]"
...
This reverts commit da7d3959a3 .
2024-09-02 01:52:28 -07:00
Andrew Kane
d02d71a398
Fixed CI
2024-09-02 01:44:03 -07:00
Andrew Kane
2aca04b8de
Updated links [skip ci]
2024-08-28 13:39:03 -07:00
Andrew Kane
e47984e616
Reset tuple sort for Postgres 12 [skip ci]
2024-08-24 22:10:26 -07:00
Andrew Kane
da7d3959a3
Improved cleanup for IVFFlat index scans [skip ci]
2024-08-24 21:59:44 -07:00
Andrew Kane
dadbbc3758
Renamed InitSortState to InitScanSortState [skip ci]
2024-08-24 21:53:15 -07:00