Commit Graph
163 Commits
Author SHA1 Message Date
Andrew Kane f37c13f68b Version bump to 0.8.7 [skip ci] 2026-10-01 10:26:23 -07:00
Andrew Kane 468fc77093 Reverted casting changes 2026-09-29 11:39:45 -07:00
Andrew Kaneandlyinglyingl 5aa947505d Hardened sparsevec_to_vector - #1016 [skip ci]
Co-authored-by: lyinglyingl <929464008@qq.com>
2026-08-14 09:50:37 -07:00
Andrew Kane 7d1045fd45 Fixed conversion warnings with pq_getmsgint [skip ci] 2026-08-13 19:41:34 -07:00
Andrew Kane 29dbbe022d Fixed conversion warnings with pq_sendint16 and pq_sendint32 [skip ci] 2026-08-13 19:09:21 -07:00
Andrew Kane ef8e78dc05 Fixed conversion warnings [skip ci] 2026-08-13 18:43:32 -07:00
Andrew Kane 61b83b67ab Fixed conversion warnings [skip ci] 2026-08-13 18:39:32 -07:00
Andrew Kane a0bd768bcb Fixed conversion warnings [skip ci] 2026-08-13 17:50:37 -07:00
Andrew Kane 53397cfd44 Fixed implicit int conversion warnings [skip ci] 2026-08-13 16:52:13 -07:00
Andrew Kane 03a5dceba4 Fixed implicit float conversion warnings [skip ci] 2026-08-13 16:23:07 -07:00
Andrew Kane 76e82d3b46 Replaced pq_sendint with pq_sendint16 and pq_sendint32 [skip ci] 2026-08-13 15:40:16 -07:00
Andrew Kane 2dc4bcd208 Improved vector_combine function 2026-08-07 11:18:32 -07:00
Andrew KaneandVaibhav Jain dc60ae7b1d Fixed error with avg aggregate when no matching rows - resolves #1012
Co-authored-by: Vaibhav Jain <jainva@google.com>
2026-08-07 10:49:40 -07:00
Andrew Kane 8ee86c96f0 Version bump to 0.8.6 [skip ci] 2026-07-29 11:28:54 -07:00
Andrew Kane ecd003dc5e Improved size types 2026-07-29 10:44:48 -07:00
Andrew Kane bf8bbf34bf Improved includes [skip ci] 2026-07-28 18:38:27 -07:00
Andrew Kane d631064394 Updated comments [skip ci] 2026-07-28 18:30:08 -07:00
Andrew Kane c13e4fc299 Hardened out functions [skip ci] 2026-07-28 17:04:42 -07:00
Andrew Kane 2fffad6bbb Hardened array alloc functions for earlier patch versions of Postgres 2026-07-28 16:15:08 -07:00
Andrew Kane a3cf81a784 Added extra byte to buffers for safety in the event of an empty vector [skip ci] 2026-07-28 14:11:37 -07:00
Andrew Kane b22c0e422c Improved type in vector_accum [skip ci] 2026-07-28 12:34:01 -07:00
Andrew Kane bb03516bb0 Improved type in vector_avg [skip ci] 2026-07-28 12:30:51 -07:00
Andrew Kane eb7913b2d9 Hardened vector_combine (currently fails at allocation for some sizes) [skip ci] 2026-07-28 12:29:24 -07:00
Andrew Kane 2a7b954beb Fixed version check for palloc variants, take 2 2026-07-27 22:30:23 -07:00
Andrew Kane 0b2d92bc4f Fixed version check for palloc variants 2026-07-27 22:25:21 -07:00
Andrew Kane e6bd4c8acf Improved CreateStateDatums [skip ci] 2026-07-27 22:09:33 -07:00
Andrew Kane 1be6148eca Switched to palloc_array and palloc0_array where possible 2026-07-27 21:51:15 -07:00
Andrew Kane 159b79aaad Version bump to 0.8.5 [skip ci] 2026-07-08 16:03:40 -07:00
Andrew Kane 1d458ad5d7 Version bump to 0.8.4 [skip ci] 2026-06-30 15:24:14 -07:00
Andrew Kane 586e7515ba Version bump to 0.8.3 [skip ci] 2026-06-17 21:26:13 -07:00
Andrew Kane ea23884efd Ran latest pgindent [skip ci] 2026-05-26 13:39:55 -07:00
Andrew Kane cab9da72c0 Version bump to 0.8.2 [skip ci] 2026-02-25 10:46:57 -08:00
Andrew Kane aca89aec73 Switched to scanner_isspace for Postgres 17+ - resolves #942 2026-01-05 12:54:04 -08:00
Andrew Kane 2b741ef068 Improved includes for types 2025-12-11 00:35:18 -08:00
Andrew Kane 778dacf20c Version bump to 0.8.1 [skip ci] 2025-09-04 17:51:09 -07:00
Andrew Kane 6aec80ccdb Improved performance of binary_quantize function for halfvec 2025-08-19 13:47:11 -07:00
Luca Giacchino 0c9070ba82 Add autovectorized implementation of binary quantize 2025-08-19 13:18:50 -07:00
Andrew Kane 30382418da Ran pgindent [skip ci] 2025-08-19 12:44:54 -07:00
Andrew Kane e29fc3aa1a Switched to PG_MODULE_MAGIC_EXT for Postgres 18+ [skip ci] 2025-07-31 19:59:27 -07:00
Andrew Kane 5b8b68ba1d Use consistent style [skip ci] 2025-07-27 18:19:28 -07:00
Andrew Kane e6bad96a03 Ran pgindent [skip ci] 2025-06-18 20:07:46 -07:00
Jon Daniel 3a49d141b3 Vectorizing vector_concat for improved performance (#861)
* Vectorizing vector_concat for improved performance

On an ARM chip this should generate SIMD instructions to copy the two
incoming vectors to the new vector as opposed to doing it all in
software.

* Moving declarations to above CheckDim

* Removing const from dims

* Formatting
2025-06-18 20:06:32 -07:00
Andrew Kane 87ac108bf7 Removed code for Postgres 12 [skip ci] 2024-09-23 15:26:31 -07:00
Andrew Kane b738ffecc1 Dropped support for Postgres 12 2024-09-19 18:13:54 -07:00
Andrew KaneandXing Guo 61870a0244 Fixed compilation warning with MSVC and Postgres 16 - fixes #598
Co-authored-by: Xing Guo <higuoxing@gmail.com>
2024-06-16 12:09:01 -07:00
Andrew Kane ee29c51a49 Added comment [skip ci] 2024-04-25 21:45:26 -07:00
Andrew Kane 13bd194d00 Added comment [skip ci] 2024-04-25 21:35:04 -07:00
Andrew Kane 78e5bcf229 Switched to 0-based numbering for sparsevec on-disk format 2024-04-24 12:51:24 -07:00
Heikki Linnakangas 14b351bc92 Fix integer overflow in subvector() function (#530)
`end = start + count` can overflow if `start` is very large. That
leads to a segfault later in the function. Add test case for it.
2024-04-24 01:20:16 -07:00
Andrew Kane 40e86251c3 Added VECTOR_TARGET_CLONES to VectorL1Distance [skip ci] 2024-04-22 15:15:57 -07:00