Commit Graph
1038 Commits
Author SHA1 Message Date
Andrew Kane 1fd8699f74 Updated readme [skip ci] 2024-03-15 21:47:57 -07:00
Andrew Kane d09d6d074f Added docs on tuning, monitoring, and scaling [skip ci] 2024-03-15 19:00:49 -07:00
Andrew Kane 2603f52d04 Improved performance section [skip ci] 2024-03-15 17:54:14 -07:00
Andrew Kane ea2ab82b38 Updated readme [skip ci] 2024-03-15 14:23:56 -07:00
Andrew Kane 033a91b4b8 Improved portability section [skip ci] 2024-03-15 14:23:04 -07:00
Andrew Kane 2a3e0a05cf Improved troubleshooting docs [skip ci] 2024-03-15 14:01:24 -07:00
Andrew Kane 3190b6a9a4 Updated comment [skip ci] 2024-03-15 12:38:14 -07:00
Andrew Kane f2122604bd Updated comment [skip ci] 2024-03-15 12:37:47 -07:00
Heikki LinnakangasandGitHub 869c6df7aa Fix compiler warnings in strict C99 mode (#487)
Redefining a typedef is a C11 feature:

    In file included from src/hnsw.c:10:
    src/hnsw.h:147:5: warning: redefinition of typedef 'HnswElementData' is a C11 feature [-Wtypedef-redefinition]
    }                       HnswElementData;
                            ^
    src/hnsw.h:118:32: note: previous definition is here
    typedef struct HnswElementData HnswElementData;
                                   ^
    src/hnsw.h:163:5: warning: redefinition of typedef 'HnswNeighborArray' is a C11 feature [-Wtypedef-redefinition]
    }                       HnswNeighborArray;
                            ^
    src/hnsw.h:119:34: note: previous definition is here
    typedef struct HnswNeighborArray HnswNeighborArray;
                                     ^
    2 warnings generated.

I got these warnings when I built PostgreSQL with "CC=clang
CFLAGS=-std=gnu99"; other similar options would surely produce the
warnings too.
2024-03-12 02:02:33 -07:00
Andrew Kane 92a76df149 Reduced lock contention with parallel HNSW index builds 2024-03-11 20:16:55 -07:00
Andrew Kane 67e7737b4a Added note about IVFFlat results [skip ci] 2024-03-06 00:29:55 -08:00
Andrew Kane 911772690d Added section about HNSW results - #480 [skip ci] 2024-03-06 00:27:50 -08:00
Andrew Kane 66688df4e8 Version bump to 0.6.1 [skip ci] v0.6.1 2024-03-04 10:27:59 -08:00
Andrew Kane 0ed99bddf0 Updated CI [skip ci] 2024-03-02 17:06:11 -08:00
Andrew Kane ac15119fab Added link to bulk loading example [skip ci] 2024-02-29 21:25:11 -08:00
Andrew Kane bc695b0497 Moved COPY example and added FORMAT [skip ci] 2024-02-29 20:35:01 -08:00
oneturkmenandGitHub 0bb61a8374 Update README.md (#472) 2024-02-29 20:27:53 -08:00
Andrew Kane 7b20e38f8f Updated changelog [skip ci] 2024-02-29 18:10:19 -08:00
Andrew Kane f4e4b04024 Added note about HNSW build time [skip ci] 2024-02-29 16:25:58 -08:00
Andrew Kane 32a790d75f Added OPTFLAGS to readme [skip ci] 2024-02-29 16:15:22 -08:00
Andrew Kane 45fd9c5c07 Updated vector operators for <= and >= 2024-02-29 15:43:29 -08:00
Andrew Kane 286ed22114 Fixed vector subtraction being marked as commutative - fixes #475 2024-02-29 14:36:18 -08:00
Andrew Kane 309a9730fe Updated license year [skip ci] 2024-02-29 13:44:58 -08:00
Andrew Kane 7b84dbb395 Fixed sort function for Postgres 12 2024-02-28 16:26:41 -08:00
Andrew KaneandHeikki Linnakangas ac280f83d2 Replaced pairing heap with array in SelectNeighbors - closes #447
Co-authored-by: Heikki Linnakangas <[email protected]>
2024-02-28 15:47:26 -08:00
Andrew Kane ae829a5b48 Fixed closer caching for Postgres 12 2024-02-28 15:44:38 -08:00
Andrew Kane 62baab1987 Specify Postgres version for Valgrind [skip ci] 2024-02-28 14:16:48 -08:00
Andrew Kane 403e11df05 Enable assertions on CI 2024-02-28 14:15:34 -08:00
Andrew Kane f8bdb41964 Avoid base address for relptr for Postgres < 14.5 2024-02-28 14:10:14 -08:00
Andrew Kane d99252fec5 Revert "Replaced pairing heap with array in SelectNeighbors - closes #447"
This reverts commit 96764dbf79.
2024-02-28 11:33:14 -08:00
Andrew KaneandHeikki Linnakangas 96764dbf79 Replaced pairing heap with array in SelectNeighbors - closes #447
Co-authored-by: Heikki Linnakangas <[email protected]>
2024-02-28 11:25:12 -08:00
Andrew Kane 09913a6af5 Updated changelog [skip ci] 2024-02-20 16:38:05 -08:00
Andrew Kane 01ba9934c2 Revert "Remove offsethash"
This reverts commit e3b904587a.
2024-02-20 16:07:32 -08:00
Andrew Kane a37413b5f4 Revert "Eliminate a few HnswPtrAccess invocations"
This reverts commit dac698ac76.
2024-02-20 16:07:21 -08:00
Heikki Linnakangas dac698ac76 Eliminate a few HnswPtrAccess invocations
HnswPtrAccess() is pretty cheap, but it stills seems worthwhile to
avoid repeated calls in the hot paths when it can be easily avoided.
2024-02-19 14:13:18 +02:00
Heikki Linnakangas e3b904587a Remove offsethash
The original motivation was to eliminate the superfluous HnswPtrAccess
call from AddToVisited. The caller has to call HnswPtrAccess() anyway,
so it makes sense to pass the HnswElement rather than HnswElementPtr
to AddToVisited(). But then I realized that we can use the
pointer-variant even with shared memory, because the visited-hash is
backend-private, and the addresses where the elements are mapped to in
shared memory are stable within the backend.
2024-02-19 14:12:26 +02:00
Andrew Kane 8a4efc951a Fixed crash with shared_preload_libraries - fixes #460 2024-02-14 17:13:30 -08:00
Andrew Kane 8cd0900351 Simplified Docker tasks [skip ci] 2024-02-07 12:03:33 -08:00
Andrew Kane 9253e7f433 Added Valgrind to CI 2024-02-07 09:43:01 -08:00
Andrew Kane 8c970d922d Updated port name [skip ci] 2024-02-06 12:43:20 -08:00
Andrew Kane 415c286b6d Improved type [skip ci] 2024-02-05 19:38:52 -08:00
Andrew Kane a0463f1dd5 Added instructions for pkg [skip ci] 2024-02-05 17:01:36 -08:00
Andrew Kane dc3923c3a2 Fixed error with ANALYZE and vectors with different dimensions - fixes #451 2024-02-02 10:47:48 -08:00
Andrew Kane 38825c5a98 Added note about vacuuming - closes #450 [skip ci] 2024-01-31 14:35:27 -08:00
Andrew Kane 90f8fe6f0f Added note for Docker [skip ci] 2024-01-29 15:33:29 -08:00
Andrew Kane 60fb458cbf Updated changelog [skip ci] 2024-01-29 11:20:33 -08:00
Andrew Kane d80f3d8ad1 Updated readme [skip ci] 2024-01-29 10:57:54 -08:00
Andrew Kane 34c5915248 Version bump to 0.6.0 [skip ci] v0.6.0 2024-01-29 10:54:44 -08:00
Andrew Kane c5dcebff39 Removed unneeded item ids 2024-01-28 23:14:52 -08:00
Andrew Kane 94d29ba178 Ran pgindent [skip ci] 2024-01-28 23:03:48 -08:00