Commit Graph
976 Commits
Author SHA1 Message Date
Andrew Kane 9859ea168e Fixed uninitialized memory in scan->xs_recheck [skip ci] 2024-01-27 19:54:16 -08:00
Andrew Kane 614368f543 Fixed possibly uninitialized memory in lists [skip ci] 2024-01-27 19:51:34 -08:00
Andrew Kane 1913881a2a Fixed uninitialized entry point level - fixes #439 and closes #440 2024-01-27 19:49:40 -08:00
Heikki LinnakangasandGitHub a1c670ffcc Remove unused heapRel arguments (#443) 2024-01-26 12:45:10 -08:00
Andrew Kane ddf1709b52 Added note about max_parallel_maintenance_workers for HNSW [skip ci] 2024-01-25 13:32:35 -08:00
Andrew Kane 6d69d621e6 Moved Windows instructions [skip ci] 2024-01-25 02:11:21 -08:00
Heikki LinnakangasandGitHub 74199312e8 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
Andrew Kane 536239762d DRY neighbor array size [skip ci] 2024-01-24 17:54:33 -08:00
Andrew Kane 2b2cee365c Condensed code [skip ci] 2024-01-24 16:20:00 -08:00
Andrew Kane ed457dafd5 Moved allocating neighbor array to separate function [skip ci] 2024-01-24 16:17:34 -08:00
Andrew Kane 08af81268d Added note about --shm-size [skip ci] 2024-01-24 14:49:38 -08:00
Andrew Kane d99b9e492f Updated changelog [skip ci] 2024-01-24 14:31:41 -08:00
Andrew Kane 9c06814393 Removed previous upgrade notes [skip ci] 2024-01-24 14:25:58 -08:00
Andrew Kane b502ed0ed5 Moved Docker image to pgvector org and added tags for each supported version of Postgres [skip ci] 2024-01-24 14:18:44 -08:00
Heikki Linnakangas 1d3d77c541 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
Heikki Linnakangas 717a4c170b Include reloptions.h directly in the .c files where it's needed
There are no references to anything that's in reloptions.h in the
header files. They need to include genam.h instead, which defines
IndexScanDesc.
2024-01-23 13:02:24 +02:00
Heikki Linnakangas a29260d008 Add direct include to pairingheap.h in headers
ivfflat.h and hnsw.h have references to pairingheap_node, so they need
to include lib/pairingheap.h. It happened to work, because
lib/pairingheap.h was being included indirectly through
nodes/execnodes.h, but let's be explicit.

Remove the include from hnswbuild.c, because there are no calls to
pairingheap functions in that file. Instead, add the includes to
hnswutils.c and ivfscan.c, which do have such calls. They are not
strictly necessary again because of the indirect include from hnsw.h
and ivfflat.h, but let's be explicit while we're messing with this.
2024-01-23 12:53:22 +02:00
Heikki Linnakangas 38ba8f7071 Remove unused #include
pg_list.h has not been used in hnswbuild.c since commit 0a7fd04b5c.
2024-01-23 12:53:13 +02:00
Andrew Kane befa5f177b Changed storage for vector from extended to external 2024-01-23 00:00:12 -08:00
Andrew Kane 145c3da384 Added validation for GUC parameters 2024-01-22 23:55:30 -08:00
Andrew Kane 43fb62b3d3 Dropped support for Postgres 11 2024-01-22 23:52:54 -08:00
Andrew Kane 03a72362a3 Leave more space for other shared memory 2024-01-22 23:31:55 -08:00
Andrew KaneandHeikki Linnakangas c6654cdacc Added support for in-memory parallel index builds for HNSW
Co-authored-by: Heikki Linnakangas <[email protected]>
2024-01-22 23:19:10 -08:00
Heikki LinnakangasandAndrew Kane 2f6629e115 Remove HnswSpool
It was just used to pass heap/index relations to
HnswParallelScanAndInsert. I think it was copied from nbtsort.c, which
is more complicated. I don't think we need a struct like this.

(That said, I actually think that we should have a state object that
would hold fields like 'heap', 'index', 'procinfo', 'collation'
etc. Passing that object around would simplify the signatures of many
functions. But that's a different story).
2024-01-22 23:11:25 -08:00
Heikki LinnakangasandAndrew Kane 0cf80b137c Remove unused 'scantuplesortstates' field 2024-01-22 23:08:20 -08:00
Andrew Kane daed87dd7f Use assert checking for scan-build [skip ci] 2024-01-22 23:05:49 -08:00
Andrew Kane 42b56ad8ee Made variable name consistent across functions [skip ci] 2024-01-22 19:02:33 -08:00
Andrew Kane 496d54767f Removed unused parameter [skip ci] 2024-01-22 19:00:45 -08:00
Andrew Kane a733a29bca Pass hash by reference 2024-01-22 18:34:40 -08:00
Andrew Kane 887095914a Added analyze to filtering tests 2024-01-21 18:08:16 -08:00
Andrew Kane c91db1edbd Added filtering tests for like [skip ci] 2024-01-21 18:01:42 -08:00
Andrew Kane 10babde8e0 Fixed test logic [skip ci] 2024-01-21 16:07:44 -08:00
Andrew Kane d83addfa8b Added more filtering tests 2024-01-21 16:03:22 -08:00
Andrew Kane 67b609cc4e Updated CI to Debian 12 [skip ci] 2024-01-21 12:40:55 -08:00
Andrew Kane 5cb73fbd65 Added test for filtering with IVFFlat 2024-01-20 21:38:40 -08:00
Andrew Kane 5db5bbc267 Fixed test warning [skip ci] 2024-01-20 21:10:24 -08:00
Andrew Kane 0fdbcce36e Added test for filtering with few rows removed 2024-01-20 21:09:14 -08:00
Andrew Kane 844ade6d4e Improved filtering test [skip ci] 2024-01-20 21:01:57 -08:00
Andrew Kane 3f92f9d929 Added test for filtering with HNSW 2024-01-20 18:06:54 -08:00
Andrew Kane ba6055fdd1 Removed unneeded test [skip ci] 2024-01-20 15:28:48 -08:00
Andrew Kane 98a11ee8d2 Updated readme [skip ci] 2024-01-20 11:40:49 -08:00
Andrew Kane 24b79e2dfc Added common paths on Mac [skip ci] 2024-01-19 21:43:55 -08:00
Andrew Kane 8df9123739 Added section on missing SDK [skip ci] 2024-01-19 20:47:23 -08:00
Andrew Kane 7aa598f1ef Added section on max_parallel_maintenance_workers [skip ci] 2024-01-18 21:57:38 -08:00
Andrew Kane 22227c8786 Added IVFFLAT_KMEANS_DEBUG to readme [skip ci] 2024-01-17 22:12:39 -08:00
Andrew Kane a44939619e Revert "Improved vector_in"
This reverts commit 25c5b6b339.
2024-01-17 17:14:42 -08:00
Andrew Kane 25c5b6b339 Improved vector_in 2024-01-17 16:57:16 -08:00
Andrew Kane 39911afefc Updated changelog [skip ci] 2024-01-17 10:50:07 -08:00
Heikki LinnakangasandGitHub e5fb150788 Don't modify input string in vector_in() (#413)
Fixes issue #399
2024-01-17 10:49:04 -08:00
Andrew Kane 64d53959e6 Updated PG_CONFIG example [skip ci] 2024-01-16 22:26:28 -08:00