Andrew Kane
f8c85905c3
Use vector_isspace to remove whitespace before strtof
2023-06-11 12:21:27 -07:00
Andrew Kane
0a98a953cd
Fixed consecutive delimiters with text representation
2023-06-11 12:10:52 -07:00
Andrew Kane
a577c2df80
Updated format [skip ci]
2023-06-11 12:04:02 -07:00
Andrew Kane
7ee9e86b10
Improved error message for invalid input syntax
2023-06-11 12:00:04 -07:00
Andrew Kane
5fdf5573a0
No need to manually free memory on errors
2023-06-11 09:42:20 -07:00
Andrew Kane
2b939edfee
Improved error message for malformed vector literal - #153
2023-06-11 09:24:11 -07:00
Andrew Kane
987026a559
Improved benchmarking for index build [skip ci]
2023-06-10 21:50:31 -07:00
Andrew Kane
6ad276aa54
Added Postgres 16 to CI
2023-06-10 11:35:28 -07:00
Andrew Kane
c03ce7d62a
Ensure insert page is always set
2023-06-10 11:29:47 -07:00
Andrew Kane
629fa6f0cd
Updated cost estimation code (same logic)
2023-06-10 10:52:29 -07:00
Andrew Kane
a33e72d58e
Always change some cost to sequential, and always update total cost
2023-06-10 02:10:53 -07:00
Andrew Kane
49e6a72d36
Remove cost of extra pages when random_page_cost equals seq_page_cost
2023-06-10 01:18:21 -07:00
Andrew Kane
b158a5fa48
Moved get_tablespace_page_costs [skip ci]
2023-06-10 01:07:54 -07:00
Andrew Kane
81cc04df61
Only adjust cost if random_page_cost is higher than seq_page_cost
2023-06-10 01:06:05 -07:00
Andrew Kane
8cb32cac76
Added comment [skip ci]
2023-06-09 21:20:48 -07:00
Andrew Kane
4ce915cf16
Improved cost estimate - #133
2023-06-09 21:11:16 -07:00
Andrew Kane
41b766c24b
Use index tuples
2023-06-09 19:55:49 -07:00
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