Andrew Kane
cbec1b3f48
Improved warnings check
2023-06-09 18:46:26 -07:00
Jonathan S. Katz
b8c7a4f4b6
Fix compiler warnings on Ubuntu ( #156 )
...
The compiler was complaining about a missing include due to the
addition of NaN/inf checks in 482a5f8b . Adding the include
silences the warnings.
2023-06-09 18:27:36 -07:00
Jonathan S. Katz
7446cbde8f
Update ivfflat cost estimation to choose index for more searches ( #133 )
...
Co-authored-by: Andrew Kane <andrew@ankane.org >
2023-06-09 17:53:14 -07:00
Andrew Kane
9f2359894f
Added todo [skip ci]
2023-06-09 00:27:01 -07:00
Andrew Kane
3c78130868
Removed extra line [skip ci]
2023-06-08 23:14:34 -07:00
Andrew Kane
768cd5d5d5
Default closest center to 0
2023-06-08 23:07:25 -07:00
Andrew Kane
7335a122db
Added comments [skip ci]
2023-06-08 23:02:03 -07:00
Andrew Kane
2115630fb0
Added comments [skip ci]
2023-06-08 23:01:09 -07:00
Andrew Kane
836be51298
Improved variable name [skip ci]
2023-06-08 22:51:20 -07:00
Andrew Kane
972d9d61cb
Simplified code [skip ci]
2023-06-08 22:43:00 -07:00
Andrew Kane
8be2b6c244
Free memory on errors
2023-06-08 22:35:31 -07:00
Andrew Kane
0134debfb8
Free datums
2023-06-08 21:23:03 -07:00
Andrew Kane
a20add331f
Updated comments [skip ci]
2023-06-08 20:26:27 -07:00
Andrew Kane
198390333e
Moved whitespace check
2023-06-08 19:52:49 -07:00
yihong
41c68bf692
fix: input function does not allow tailing spaces ( #148 )
2023-06-08 19:51:20 -07:00
Andrew Kane
1aea0dfcd8
Added element check to binary format and fixed segmentation fault with index creation - fixes #151
2023-06-08 18:32:36 -07:00
Andrew Kane
b6430bae62
Moved overflow check
2023-06-04 13:37:31 -07:00
Andrew Kane
8294a0a562
Improved style [skip ci]
2023-06-04 13:30:28 -07:00
Andrew Kane
b31c8062c3
Avoid allocating more memory
2023-06-04 13:24:27 -07:00
Andrew Kane
482a5f8b66
Added check for NaN
2023-06-04 10:52:28 -07:00
Andrew Kane
e971fdd4fd
Fixed infinite values with list centers
2023-06-04 10:42:55 -07:00
Andrew Kane
0ef0467a0f
Fixed infinite values with vector addition and subtraction
2023-05-31 13:54:19 -07:00
Andrew Kane
451ac59a03
Improved code [skip ci]
2023-05-20 19:04:35 -07:00
Andrew Kane
6f94c5e897
Improved code [skip ci]
2023-05-20 19:02:38 -07:00
Andrew Kane
a912d1af9a
Call FreeAccessStrategy
2023-05-19 13:09:30 -07:00
Andrew Kane
59071dc78d
Fixed sort operator - fixes #131
2023-05-17 14:04:15 -07:00
Andrew Kane
5b3878b7fe
Fixed avg functions when float8 is pass by reference - #131
2023-05-17 12:01:08 -07:00
Andrew Kane
300adba2f1
Updated messages
2023-05-13 20:44:46 -07:00
Andrew Kane
53301021f6
Added dimensions check to vector_avg
2023-05-12 17:19:16 -07:00
Nathan Bossart
dcf206128a
Check bounds unconditionally in array_to_vector(). ( #127 )
...
Presently, array_to_vector()'s call to CheckDim() is skipped when typmod != -1, which allows for bypassing VECTOR_MAX_DIM. To fix, call Check[Expected]Dim() unconditionally. CheckExpectedDim() takes no action when typmod == -1, so there's no need to guard it with an 'if' statement.
2023-05-12 17:08:51 -07:00
Andrew Kane
d5b17a3624
Fixed installation error with Postgres 12.0-12.2 - fixes #101
2023-04-25 09:36:21 -07:00
Andrew Kane
f32f695844
Improved notice [skip ci]
2023-04-10 21:31:33 -07:00
Andrew Kane
1b013a94f7
Added notice when index created with little data [skip ci]
2023-04-10 21:28:24 -07:00
Andrew Kane
1d020abdd1
Added auto-vectorized comments [skip ci]
2023-03-31 16:20:10 -07:00
Andrew Kane
121baa411e
Added debug message for index scan
2023-03-26 12:45:44 -07:00
Andrew Kane
4e68f4f800
Updated comment [skip ci]
2023-03-21 11:55:26 -07:00
Andrew Kane
b69ac51ad7
Added comment [skip ci]
2023-03-21 11:43:30 -07:00
Andrew Kane
bc9e2a37ec
Improved performance of cosine distance
2023-03-21 11:25:25 -07:00
Andrew Kane
42da2b334b
Restored previous behavior and added comment
2023-03-12 13:57:40 -07:00
Andrew Kane
dbfc6a35d9
Improved vacuumcleanup stats
2023-03-12 13:34:26 -07:00
Andrew Kane
bb75ce2cf2
Fixed index scan count
2023-03-12 12:24:20 -07:00
Andrew Kane
e4b0d41d30
Fixed warning
2023-02-23 14:17:31 -08:00
Andrew Kane
0b3dc0887f
Fixed compilation with Postgres 16 - fixes #61
2023-02-23 14:08:27 -08:00
Andrew Kane
b6f1a82774
Added assertions to scan [skip ci]
2023-01-10 21:07:19 -08:00
Andrew Kane
7b0b6a7875
Increased max dimensions for vector from 1024 to 16000 and increased max dimensions for index from 1024 to 2000
2023-01-10 14:49:50 -08:00
Andrew Kane
13e0fa24fe
Use memory context for inserts
2023-01-10 02:53:58 -08:00
Andrew Kane
7c65fd13c1
Detoast once for all calls
2023-01-10 02:35:08 -08:00
Andrew Kane
474933ae39
Improved error message [skip ci]
2023-01-10 01:22:34 -08:00
Andrew Kane
b1237c7c4e
Added separate dimensions limit for ivfflat indexes
2023-01-10 01:20:25 -08:00
Andrew Kane
8c3eb51ddc
Added comment [skip ci]
2023-01-10 01:03:27 -08:00