Commit Graph
53 Commits
Author SHA1 Message Date
Andrew Kane ea47342870 Improved variable scoping 2023-07-15 18:53:41 -07:00
Andrew Kane 06c3e68bef Fixed segmentation fault with text representation 2023-06-12 01:09:40 -07:00
Andrew Kane eff0de6a64 Updated comments [skip ci] 2023-06-11 18:36:41 -07:00
Andrew Kane 3cf7ce6543 Added comment for CheckDim [skip ci] 2023-06-11 13:06:51 -07:00
Andrew Kane 3cb6440744 Simplified PrintVector [skip ci] 2023-06-11 12:54:18 -07:00
Andrew Kane b6a0d2b12b Check for empty string like float4in [skip ci] 2023-06-11 12:34:24 -07:00
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 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 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 0ef0467a0f Fixed infinite values with vector addition and subtraction 2023-05-31 13:54:19 -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 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 1d020abdd1 Added auto-vectorized comments [skip ci] 2023-03-31 16:20:10 -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 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 f205312430 Added float_overflow_error function for Postgres 11 2022-12-30 17:55:02 -08:00
Andrew Kane 3d8543f9ff Fixed include 2022-12-30 17:33:00 -08:00
Andrew Kane 8cbf0254bb Fixed TYPALIGN_DOUBLE error 2022-12-30 17:26:41 -08:00
Andrew Kane e09f93cba7 Added avg aggregate for vector - closes #51 2022-12-30 17:22:25 -08:00
Andrew Kane 2621f9f947 Added experimental support for Windows (including auto-vectorization) - closes #49 2022-12-08 13:27:26 -08:00
Andrew Kane 84a8bdd661 Fixed FLOAT_SHORTEST_DECIMAL_LEN for Postgres < 12 [skip ci] 2022-12-02 10:54:14 -08:00
Andrew Kane 37a784d3f6 Fixed improved vector text representation for Postgres < 12 2022-12-01 15:41:12 -08:00
Andrew Kane c74bb5495b Improved vector text representation - fixes #46 2022-12-01 14:57:47 -08:00
Andrew Kane cc35af160e Use strtof like float4in to avoid a double-rounding problem 2022-12-01 14:41:09 -08:00
Andrew Kane 7c12d100ce Fixed build for Postgres < 13 2021-06-20 22:06:14 -07:00
Andrew Kane d97d9a6561 Added cast for vector to real[] 2021-06-20 21:53:06 -07:00
Andrew Kane 154e4334fb Added cast for numeric[] 2021-06-11 03:32:47 -07:00
Andrew Kane ebeac156c0 Require unused to be 0 2021-05-26 13:40:38 -07:00
Andrew Kane 3a488c9f2f Fixed warning 2021-04-25 20:39:16 -07:00
Andrew Kane 2515cf050d Removed pow 2021-04-24 17:15:53 -07:00