Andrew Kane
f2617f02d1
Updated style to be consistent with latest Postgres [skip ci]
2026-06-18 12:44:11 -07:00
Andrew Kane
97e0ed4464
Fixed compilation errors with Postgres 19
2026-04-14 15:46:10 -07:00
Andrew Kane
17916cad00
Improved includes [skip ci]
2026-02-25 17:35:23 -08:00
Andrew Kane
9ed39fb94b
Hardened shared memory allocator
...
Co-authored-by: chungkn from OneMount Group <kimngocchung.k2a@gmail.com >
2026-02-25 10:39:01 -08:00
Andrew Kane
b7e680d41a
Fixed integer wraparound leading to buffer overflow with parallel HNSW index build
...
Reported-by: chungkn from OneMount Group <kimngocchung.k2a@gmail.com >
2026-02-25 10:35:14 -08:00
Andrew Kane
c711da411c
Improved includes for indexes
2025-12-11 15:35:37 -08:00
Andrew Kane
d72ee71f23
Fixed compilation errors with Postgres 19
2025-12-10 14:59:29 -08:00
Andrew Kane
3ebb9a506e
Added varatt headers for Postgres 16+
2025-10-22 11:56:05 -07:00
Andrew Kane
8f4aa0751c
Removed unused parameters [skip ci]
2025-09-27 15:51:32 -07:00
Andrew Kane
a2408e60fa
Revert "Added IndexTuple to HNSW elements (first step to support multiple attributes)"
...
This reverts commit 53a8734bac .
2024-10-11 14:57:57 -07:00
Andrew Kane
53a8734bac
Added IndexTuple to HNSW elements (first step to support multiple attributes)
2024-10-11 14:12:01 -07:00
Andrew Kane
32ab27d72a
Added HnswSupport struct for support functions
2024-10-09 23:10:26 -07:00
Andrew Kane
064db12de7
Moved procinfo initialization for inserts [skip ci]
2024-10-09 21:59:21 -07:00
Andrew Kane
a98534e5ab
DRY HNSW procinfo
2024-10-09 21:03:18 -07:00
Andrew Kane
57c05c59a2
DRY code for forming index value
2024-10-09 20:50:17 -07:00
Andrew Kane
658d74e2f6
Use Size for memory [skip ci]
2024-09-29 23:48:58 -07:00
Andrew Kane
525e3b81e1
Improved HnswUpdateConnection parameters [skip ci]
2024-09-29 19:47:25 -07:00
Andrew Kane
5ce367e18b
Removed lc from HnswUpdateConnection [skip ci]
2024-09-29 18:18:42 -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
57fb706242
Fixed locking for parallel HNSW index builds - fixes #635
2024-08-04 11:27:51 -07:00
Narek Galstyan
9dcf1bdc80
Fix init_fork WAL-logging on unlogged indexes ( #591 )
...
Currently pgvector does not create any WAL records for unlogged tables
Postgres assumes INIT_FORK of unlogged tables is persistent and uses it
to reset the table index to its default empty state after a server
crash.
This patch makes INIT_FORK of unlogged table WAL-tracked, which ensures
an unlogged table is usable after a crash-restart
2024-06-10 21:16:32 -07:00
Andrew Kane
1fdfff7349
Restored collation for consistency [skip ci]
2024-04-25 13:46:45 -07:00
Andrew Kane
38e365ed58
Restored HnswNormValue [skip ci]
2024-04-25 13:35:17 -07:00
Andrew Kane
58ec5296b0
Reduced support functions for HNSW - #527
2024-04-25 13:21:24 -07:00
Andrew Kane
47d5b2896e
Improved support functions for HNSW - #527
2024-04-25 13:00:40 -07:00
Andrew Kane
3eef1ff5c2
Removed type-specific code from HNSW [skip ci]
2024-04-24 14:53:45 -07:00
Andrew Kane
f14c21748b
Added support function for l2_normalize [skip ci]
2024-04-22 18:36:47 -07:00
Andrew Kane
5215c28923
Moved norm check to separate function
2024-04-15 15:32:08 -07:00
Andrew Kane
abac7a3f77
Added sparsevec type
2024-04-02 14:25:09 -07:00
Andrew Kane
32a502c838
Added halfvec type
2024-04-02 13:55:45 -07:00
Andrew Kane
94a444f029
Added support for bit vectors to HNSW
2024-04-01 20:30:55 -07:00
Andrew Kane
2c48e3edc2
Mark type-specific code
2024-03-29 14:01:48 -07:00
Andrew Kane
de410a2915
Use variable for max dimemsions [skip ci]
2024-03-29 10:57:16 -07:00
Andrew Kane
8e59455c3c
Removed normvec for simplicity (no difference in performance)
2024-03-27 16:33:11 -07:00
Andrew Kane
1dc6514b66
Updated comment [skip ci]
2024-03-15 12:38:14 -07:00
Andrew Kane
6c53f7ca02
Updated comment [skip ci]
2024-03-15 12:37:47 -07:00
Andrew Kane
3ea2ce89be
Reduced lock contention with parallel HNSW index builds
2024-03-11 20:16:55 -07:00
Andrew Kane
b447ae4989
Avoid base address for relptr for Postgres < 14.5
2024-02-28 14:10:14 -08:00
Andrew Kane
5ba62fca84
Fixed crash with shared_preload_libraries - fixes #460
2024-02-14 17:13:30 -08:00
Andrew Kane
f43cd0ed98
Improved type [skip ci]
2024-02-05 19:38:52 -08:00
Andrew Kane
cad9e22d9a
Updated variable name to be consistent with CreateGraphPages [skip ci]
2024-01-28 23:02:13 -08:00
Andrew Kane
a7d43904f7
Zero memory for each element
2024-01-28 23:00:39 -08:00
Andrew Kane
ded649891b
DRY HNSW tuple alloc size [skip ci]
2024-01-28 22:58:38 -08:00
Andrew Kane
86b31fdf96
Revert "Update neighbor tuples in-place for HNSW index build"
...
This reverts commit 270dd8189a .
2024-01-28 22:18:22 -08:00
Andrew Kane
642ee1f423
Improved function names
2024-01-28 21:00:12 -08:00
Andrew Kane
270dd8189a
Update neighbor tuples in-place for HNSW index build
2024-01-28 20:53:56 -08:00
Heikki Linnakangas
121f53b8ff
Remove unused heapRel arguments ( #443 )
2024-01-26 12:45:10 -08:00
Heikki Linnakangas
571697fee7
Remove unnecessary UpdateProgress() wrappers ( #433 )
...
Now that we require PostgreSQL v12, we can use
pgstat_progress_update_param directly.
2024-01-25 00:07:57 -08:00
Heikki Linnakangas
c8be3a369b
Include generic_xlog.h directly in the .c files where it's needed
...
There are no references to anything that's in generic_xlog.h in the
header files.
2024-01-23 13:04:03 +02:00