From 21656e4912c18980eb16176e8f754e68f0663cd9 Mon Sep 17 00:00:00 2001 From: cutecutecat Date: Wed, 20 Nov 2024 19:00:00 +0800 Subject: [PATCH] release: v0.4.0 (#615) * release: v0.4.0 Signed-off-by: cutecutecat * fix by comment Signed-off-by: cutecutecat --------- Signed-off-by: cutecutecat --- sql/install/vectors--0.3.0.sql | 466 +++--- sql/install/vectors--0.4.0.sql | 1967 +++++++++++++++++++++++++ sql/upgrade/vectors--0.3.0--0.4.0.sql | 1511 +++++++++++++++++++ src/datatype/text_svecf32.rs | 3 +- src/upgrade/symbols.rs | 73 +- 5 files changed, 3764 insertions(+), 256 deletions(-) create mode 100644 sql/install/vectors--0.4.0.sql create mode 100644 sql/upgrade/vectors--0.3.0--0.4.0.sql diff --git a/sql/install/vectors--0.3.0.sql b/sql/install/vectors--0.3.0.sql index 48192c248..e093e7510 100644 --- a/sql/install/vectors--0.3.0.sql +++ b/sql/install/vectors--0.3.0.sql @@ -4,7 +4,7 @@ This file is auto generated by pgrx. The ordering of items is not stable, it is driven by a dependency graph. */ --- src/lib.rs:24 +-- src/lib.rs:22 -- bootstrap -- bootstrap begin @@ -28,7 +28,7 @@ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_veci8_ -- src/datatype/binary_veci8.rs:11 -- vectors::datatype::binary_veci8::_vectors_veci8_send CREATE FUNCTION "_vectors_veci8_send"( - "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS bytea /* vectors::datatype::binary::Bytea */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -37,9 +37,9 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_send_wrapper'; -- src/datatype/binary_veci8.rs:33 -- vectors::datatype::binary_veci8::_vectors_veci8_recv CREATE FUNCTION "_vectors_veci8_recv"( - "internal" internal, /* pgrx::datum::internal::Internal */ - "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -48,7 +48,7 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_recv_wrapper'; -- src/datatype/text_veci8.rs:41 -- vectors::datatype::text_veci8::_vectors_veci8_out CREATE FUNCTION "_vectors_veci8_out"( - "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS cstring /* alloc::ffi::c_str::CString */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -57,8 +57,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_out_wrapper'; -- src/datatype/operators_veci8.rs:79 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_neq CREATE FUNCTION "_vectors_veci8_operator_neq"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -67,8 +67,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_neq_wrapper'; -- src/datatype/operators_veci8.rs:36 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_mul CREATE FUNCTION "_vectors_veci8_operator_mul"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -77,8 +77,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_mul_wrapper'; -- src/datatype/operators_veci8.rs:22 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_minus CREATE FUNCTION "_vectors_veci8_operator_minus"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -87,8 +87,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_minus_wrapper'; -- src/datatype/operators_veci8.rs:55 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_lte CREATE FUNCTION "_vectors_veci8_operator_lte"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -97,8 +97,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_lte_wrapper'; -- src/datatype/operators_veci8.rs:49 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_lt CREATE FUNCTION "_vectors_veci8_operator_lt"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -107,8 +107,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_lt_wrapper'; -- src/datatype/operators_veci8.rs:97 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_l2 CREATE FUNCTION "_vectors_veci8_operator_l2"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -117,8 +117,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_l2_wrapper'; -- src/datatype/operators_veci8.rs:67 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_gte CREATE FUNCTION "_vectors_veci8_operator_gte"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -127,8 +127,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_gte_wrapper'; -- src/datatype/operators_veci8.rs:61 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_gt CREATE FUNCTION "_vectors_veci8_operator_gt"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -137,8 +137,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_gt_wrapper'; -- src/datatype/operators_veci8.rs:73 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_eq CREATE FUNCTION "_vectors_veci8_operator_eq"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -147,8 +147,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_eq_wrapper'; -- src/datatype/operators_veci8.rs:91 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_dot CREATE FUNCTION "_vectors_veci8_operator_dot"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -157,8 +157,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_dot_wrapper'; -- src/datatype/operators_veci8.rs:85 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_cosine CREATE FUNCTION "_vectors_veci8_operator_cosine"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -167,8 +167,8 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_cosine_wrapper'; -- src/datatype/operators_veci8.rs:9 -- vectors::datatype::operators_veci8::_vectors_veci8_operator_add CREATE FUNCTION "_vectors_veci8_operator_add"( - "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "lhs" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "rhs" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -177,7 +177,7 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_operator_add_wrapper'; -- src/datatype/functions_veci8.rs:17 -- vectors::datatype::functions_veci8::_vectors_veci8_normalize CREATE FUNCTION "_vectors_veci8_normalize"( - "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -186,7 +186,7 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_normalize_wrapper'; -- src/datatype/functions_veci8.rs:12 -- vectors::datatype::functions_veci8::_vectors_veci8_norm CREATE FUNCTION "_vectors_veci8_norm"( - "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -195,9 +195,9 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_norm_wrapper'; -- src/datatype/text_veci8.rs:9 -- vectors::datatype::text_veci8::_vectors_veci8_in CREATE FUNCTION "_vectors_veci8_in"( - "input" cstring, /* &core::ffi::c_str::CStr */ - "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -206,7 +206,7 @@ AS 'MODULE_PATHNAME', '_vectors_veci8_in_wrapper'; -- src/datatype/functions_veci8.rs:7 -- vectors::datatype::functions_veci8::_vectors_veci8_dims CREATE FUNCTION "_vectors_veci8_dims"( - "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ + "vector" veci8 /* vectors::datatype::memory_veci8::Veci8Input */ ) RETURNS INT /* i32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -220,7 +220,7 @@ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32 -- src/datatype/binary_vecf32.rs:11 -- vectors::datatype::binary_vecf32::_vectors_vecf32_send CREATE FUNCTION "_vectors_vecf32_send"( - "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bytea /* vectors::datatype::binary::Bytea */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -229,9 +229,9 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_send_wrapper'; -- src/datatype/binary_vecf32.rs:25 -- vectors::datatype::binary_vecf32::_vectors_vecf32_recv CREATE FUNCTION "_vectors_vecf32_recv"( - "internal" internal, /* pgrx::datum::internal::Internal */ - "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -240,7 +240,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_recv_wrapper'; -- src/datatype/text_vecf32.rs:30 -- vectors::datatype::text_vecf32::_vectors_vecf32_out CREATE FUNCTION "_vectors_vecf32_out"( - "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS cstring /* alloc::ffi::c_str::CString */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -249,8 +249,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_out_wrapper'; -- src/datatype/operators_vecf32.rs:71 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_neq CREATE FUNCTION "_vectors_vecf32_operator_neq"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -259,8 +259,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_neq_wrapper'; -- src/datatype/operators_vecf32.rs:31 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_mul CREATE FUNCTION "_vectors_vecf32_operator_mul"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -269,8 +269,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_mul_wrapper'; -- src/datatype/operators_vecf32.rs:20 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_minus CREATE FUNCTION "_vectors_vecf32_operator_minus"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -279,8 +279,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_minus_wrapper'; -- src/datatype/operators_vecf32.rs:47 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_lte CREATE FUNCTION "_vectors_vecf32_operator_lte"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -289,8 +289,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_lte_wrapper'; -- src/datatype/operators_vecf32.rs:41 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_lt CREATE FUNCTION "_vectors_vecf32_operator_lt"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -299,8 +299,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_lt_wrapper'; -- src/datatype/operators_vecf32.rs:89 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_l2 CREATE FUNCTION "_vectors_vecf32_operator_l2"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -309,8 +309,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_l2_wrapper'; -- src/datatype/operators_vecf32.rs:59 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_gte CREATE FUNCTION "_vectors_vecf32_operator_gte"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -319,8 +319,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_gte_wrapper'; -- src/datatype/operators_vecf32.rs:53 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_gt CREATE FUNCTION "_vectors_vecf32_operator_gt"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -329,8 +329,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_gt_wrapper'; -- src/datatype/operators_vecf32.rs:65 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_eq CREATE FUNCTION "_vectors_vecf32_operator_eq"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -339,8 +339,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_eq_wrapper'; -- src/datatype/operators_vecf32.rs:83 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_dot CREATE FUNCTION "_vectors_vecf32_operator_dot"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -349,8 +349,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_dot_wrapper'; -- src/datatype/operators_vecf32.rs:77 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_cosine CREATE FUNCTION "_vectors_vecf32_operator_cosine"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -359,8 +359,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_cosine_wrapper'; -- src/datatype/operators_vecf32.rs:10 -- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_add CREATE FUNCTION "_vectors_vecf32_operator_add"( - "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -369,7 +369,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_add_wrapper'; -- src/datatype/functions_vecf32.rs:16 -- vectors::datatype::functions_vecf32::_vectors_vecf32_normalize CREATE FUNCTION "_vectors_vecf32_normalize"( - "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -378,7 +378,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_normalize_wrapper'; -- src/datatype/functions_vecf32.rs:11 -- vectors::datatype::functions_vecf32::_vectors_vecf32_norm CREATE FUNCTION "_vectors_vecf32_norm"( - "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -387,9 +387,9 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_norm_wrapper'; -- src/datatype/text_vecf32.rs:10 -- vectors::datatype::text_vecf32::_vectors_vecf32_in CREATE FUNCTION "_vectors_vecf32_in"( - "input" cstring, /* &core::ffi::c_str::CStr */ - "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -398,7 +398,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_in_wrapper'; -- src/datatype/functions_vecf32.rs:6 -- vectors::datatype::functions_vecf32::_vectors_vecf32_dims CREATE FUNCTION "_vectors_vecf32_dims"( - "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS INT /* i32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -407,7 +407,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf32_dims_wrapper'; -- src/datatype/aggregate_vecf32.rs:144 -- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_sum_finalfunc CREATE FUNCTION "_vectors_vecf32_aggregate_sum_finalfunc"( - "state" internal /* pgrx::datum::internal::Internal */ + "state" internal /* pgrx::datum::internal::Internal */ ) RETURNS vector /* core::option::Option */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -424,7 +424,7 @@ CREATE FUNCTION _vectors_vecf32_aggregate_avg_sum_combinefunc(internal, internal -- src/datatype/aggregate_vecf32.rs:126 -- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_avg_finalfunc CREATE FUNCTION "_vectors_vecf32_aggregate_avg_finalfunc"( - "state" internal /* pgrx::datum::internal::Internal */ + "state" internal /* pgrx::datum::internal::Internal */ ) RETURNS vector /* core::option::Option */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -438,7 +438,7 @@ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16 -- src/datatype/binary_vecf16.rs:11 -- vectors::datatype::binary_vecf16::_vectors_vecf16_send CREATE FUNCTION "_vectors_vecf16_send"( - "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS bytea /* vectors::datatype::binary::Bytea */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -447,9 +447,9 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_send_wrapper'; -- src/datatype/binary_vecf16.rs:25 -- vectors::datatype::binary_vecf16::_vectors_vecf16_recv CREATE FUNCTION "_vectors_vecf16_recv"( - "internal" internal, /* pgrx::datum::internal::Internal */ - "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -458,7 +458,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_recv_wrapper'; -- src/datatype/text_vecf16.rs:30 -- vectors::datatype::text_vecf16::_vectors_vecf16_out CREATE FUNCTION "_vectors_vecf16_out"( - "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS cstring /* alloc::ffi::c_str::CString */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -467,8 +467,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_out_wrapper'; -- src/datatype/operators_vecf16.rs:71 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_neq CREATE FUNCTION "_vectors_vecf16_operator_neq"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -477,8 +477,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_neq_wrapper'; -- src/datatype/operators_vecf16.rs:31 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_mul CREATE FUNCTION "_vectors_vecf16_operator_mul"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -487,8 +487,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_mul_wrapper'; -- src/datatype/operators_vecf16.rs:20 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_minus CREATE FUNCTION "_vectors_vecf16_operator_minus"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -497,8 +497,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_minus_wrapper'; -- src/datatype/operators_vecf16.rs:47 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_lte CREATE FUNCTION "_vectors_vecf16_operator_lte"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -507,8 +507,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_lte_wrapper'; -- src/datatype/operators_vecf16.rs:41 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_lt CREATE FUNCTION "_vectors_vecf16_operator_lt"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -517,8 +517,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_lt_wrapper'; -- src/datatype/operators_vecf16.rs:89 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_l2 CREATE FUNCTION "_vectors_vecf16_operator_l2"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -527,8 +527,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_l2_wrapper'; -- src/datatype/operators_vecf16.rs:59 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_gte CREATE FUNCTION "_vectors_vecf16_operator_gte"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -537,8 +537,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_gte_wrapper'; -- src/datatype/operators_vecf16.rs:53 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_gt CREATE FUNCTION "_vectors_vecf16_operator_gt"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -547,8 +547,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_gt_wrapper'; -- src/datatype/operators_vecf16.rs:65 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_eq CREATE FUNCTION "_vectors_vecf16_operator_eq"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -557,8 +557,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_eq_wrapper'; -- src/datatype/operators_vecf16.rs:83 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_dot CREATE FUNCTION "_vectors_vecf16_operator_dot"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -567,8 +567,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_dot_wrapper'; -- src/datatype/operators_vecf16.rs:77 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_cosine CREATE FUNCTION "_vectors_vecf16_operator_cosine"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -577,8 +577,8 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_cosine_wrapper'; -- src/datatype/operators_vecf16.rs:10 -- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_add CREATE FUNCTION "_vectors_vecf16_operator_add"( - "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -587,7 +587,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_add_wrapper'; -- src/datatype/functions_vecf16.rs:16 -- vectors::datatype::functions_vecf16::_vectors_vecf16_normalize CREATE FUNCTION "_vectors_vecf16_normalize"( - "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -596,7 +596,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_normalize_wrapper'; -- src/datatype/functions_vecf16.rs:11 -- vectors::datatype::functions_vecf16::_vectors_vecf16_norm CREATE FUNCTION "_vectors_vecf16_norm"( - "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -605,9 +605,9 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_norm_wrapper'; -- src/datatype/text_vecf16.rs:10 -- vectors::datatype::text_vecf16::_vectors_vecf16_in CREATE FUNCTION "_vectors_vecf16_in"( - "input" cstring, /* &core::ffi::c_str::CStr */ - "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -616,7 +616,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_in_wrapper'; -- src/datatype/functions_vecf16.rs:6 -- vectors::datatype::functions_vecf16::_vectors_vecf16_dims CREATE FUNCTION "_vectors_vecf16_dims"( - "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ ) RETURNS INT /* i32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -625,7 +625,7 @@ AS 'MODULE_PATHNAME', '_vectors_vecf16_dims_wrapper'; -- src/datatype/typmod.rs:76 -- vectors::datatype::typmod::_vectors_typmod_out CREATE FUNCTION "_vectors_typmod_out"( - "typmod" INT /* i32 */ + "typmod" INT /* i32 */ ) RETURNS cstring /* alloc::ffi::c_str::CString */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -634,7 +634,7 @@ AS 'MODULE_PATHNAME', '_vectors_typmod_out_wrapper'; -- src/datatype/typmod.rs:48 -- vectors::datatype::typmod::_vectors_typmod_in_65535 CREATE FUNCTION "_vectors_typmod_in_65535"( - "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ + "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ ) RETURNS INT /* i32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -643,7 +643,7 @@ AS 'MODULE_PATHNAME', '_vectors_typmod_in_65535_wrapper'; -- src/datatype/typmod.rs:62 -- vectors::datatype::typmod::_vectors_typmod_in_1048575 CREATE FUNCTION "_vectors_typmod_in_1048575"( - "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ + "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ ) RETURNS INT /* i32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -652,10 +652,10 @@ AS 'MODULE_PATHNAME', '_vectors_typmod_in_1048575_wrapper'; -- src/datatype/functions_veci8.rs:22 -- vectors::datatype::functions_veci8::_vectors_to_veci8 CREATE FUNCTION "_vectors_to_veci8"( - "len" INT, /* i32 */ - "alpha" real, /* f32 */ - "offset" real, /* f32 */ - "values" INT[] /* pgrx::datum::array::Array */ + "len" INT, /* i32 */ + "alpha" real, /* f32 */ + "offset" real, /* f32 */ + "values" INT[] /* pgrx::datum::array::Array */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -664,9 +664,9 @@ AS 'MODULE_PATHNAME', '_vectors_to_veci8_wrapper'; -- src/datatype/functions_svecf32.rs:23 -- vectors::datatype::functions_svecf32::_vectors_to_svector CREATE FUNCTION "_vectors_to_svector"( - "dims" INT, /* i32 */ - "index" INT[], /* pgrx::datum::array::Array */ - "value" real[] /* pgrx::datum::array::Array */ + "dims" INT, /* i32 */ + "index" INT[], /* pgrx::datum::array::Array */ + "value" real[] /* pgrx::datum::array::Array */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -675,8 +675,8 @@ AS 'MODULE_PATHNAME', '_vectors_to_svector_wrapper'; -- src/embedding/mod.rs:9 -- vectors::embedding::_vectors_text2vec_openai CREATE FUNCTION "_vectors_text2vec_openai"( - "input" TEXT, /* alloc::string::String */ - "model" TEXT /* alloc::string::String */ + "input" TEXT, /* alloc::string::String */ + "model" TEXT /* alloc::string::String */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ STRICT VOLATILE PARALLEL SAFE LANGUAGE c /* Rust */ @@ -690,7 +690,7 @@ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf3 -- src/datatype/binary_svecf32.rs:12 -- vectors::datatype::binary_svecf32::_vectors_svecf32_send CREATE FUNCTION "_vectors_svecf32_send"( - "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS bytea /* vectors::datatype::binary::Bytea */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -699,18 +699,18 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_send_wrapper'; -- src/datatype/binary_svecf32.rs:31 -- vectors::datatype::binary_svecf32::_vectors_svecf32_recv CREATE FUNCTION "_vectors_svecf32_recv"( - "internal" internal, /* pgrx::datum::internal::Internal */ - "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ AS 'MODULE_PATHNAME', '_vectors_svecf32_recv_wrapper'; --- src/datatype/text_svecf32.rs:42 +-- src/datatype/text_svecf32.rs:80 -- vectors::datatype::text_svecf32::_vectors_svecf32_out CREATE FUNCTION "_vectors_svecf32_out"( - "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS cstring /* alloc::ffi::c_str::CString */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -719,8 +719,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_out_wrapper'; -- src/datatype/operators_svecf32.rs:165 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_neq CREATE FUNCTION "_vectors_svecf32_operator_neq"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -729,8 +729,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_neq_wrapper'; -- src/datatype/operators_svecf32.rs:93 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_mul CREATE FUNCTION "_vectors_svecf32_operator_mul"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -739,8 +739,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_mul_wrapper'; -- src/datatype/operators_svecf32.rs:51 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_minus CREATE FUNCTION "_vectors_svecf32_operator_minus"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -749,8 +749,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_minus_wrapper'; -- src/datatype/operators_svecf32.rs:141 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_lte CREATE FUNCTION "_vectors_svecf32_operator_lte"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -759,8 +759,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_lte_wrapper'; -- src/datatype/operators_svecf32.rs:135 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_lt CREATE FUNCTION "_vectors_svecf32_operator_lt"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -769,8 +769,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_lt_wrapper'; -- src/datatype/operators_svecf32.rs:183 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_l2 CREATE FUNCTION "_vectors_svecf32_operator_l2"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -779,8 +779,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_l2_wrapper'; -- src/datatype/operators_svecf32.rs:153 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_gte CREATE FUNCTION "_vectors_svecf32_operator_gte"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -789,8 +789,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_gte_wrapper'; -- src/datatype/operators_svecf32.rs:147 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_gt CREATE FUNCTION "_vectors_svecf32_operator_gt"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -799,8 +799,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_gt_wrapper'; -- src/datatype/operators_svecf32.rs:159 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_eq CREATE FUNCTION "_vectors_svecf32_operator_eq"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -809,8 +809,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_eq_wrapper'; -- src/datatype/operators_svecf32.rs:177 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_dot CREATE FUNCTION "_vectors_svecf32_operator_dot"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -819,8 +819,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_dot_wrapper'; -- src/datatype/operators_svecf32.rs:171 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_cosine CREATE FUNCTION "_vectors_svecf32_operator_cosine"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -829,8 +829,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_cosine_wrapper'; -- src/datatype/operators_svecf32.rs:10 -- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_add CREATE FUNCTION "_vectors_svecf32_operator_add"( - "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -839,7 +839,7 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_add_wrapper'; -- src/datatype/functions_svecf32.rs:18 -- vectors::datatype::functions_svecf32::_vectors_svecf32_normalize CREATE FUNCTION "_vectors_svecf32_normalize"( - "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -848,18 +848,18 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_normalize_wrapper'; -- src/datatype/functions_svecf32.rs:13 -- vectors::datatype::functions_svecf32::_vectors_svecf32_norm CREATE FUNCTION "_vectors_svecf32_norm"( - "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ AS 'MODULE_PATHNAME', '_vectors_svecf32_norm_wrapper'; --- src/datatype/text_svecf32.rs:12 +-- src/datatype/text_svecf32.rs:14 -- vectors::datatype::text_svecf32::_vectors_svecf32_in CREATE FUNCTION "_vectors_svecf32_in"( - "input" cstring, /* &core::ffi::c_str::CStr */ - "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "_typmod" INT /* i32 */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -868,8 +868,8 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_in_wrapper'; -- src/datatype/functions_svecf32.rs:65 -- vectors::datatype::functions_svecf32::_vectors_svecf32_div CREATE FUNCTION "_vectors_svecf32_div"( - "vector" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "scalar" real /* f32 */ + "vector" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "scalar" real /* f32 */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -878,7 +878,7 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_div_wrapper'; -- src/datatype/functions_svecf32.rs:8 -- vectors::datatype::functions_svecf32::_vectors_svecf32_dims CREATE FUNCTION "_vectors_svecf32_dims"( - "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ ) RETURNS INT /* i32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -887,7 +887,7 @@ AS 'MODULE_PATHNAME', '_vectors_svecf32_dims_wrapper'; -- src/datatype/aggregate_svecf32.rs:301 -- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_sum_finalfunc CREATE FUNCTION "_vectors_svecf32_aggregate_sum_finalfunc"( - "state" internal /* pgrx::datum::internal::Internal */ + "state" internal /* pgrx::datum::internal::Internal */ ) RETURNS svector /* core::option::Option */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -904,7 +904,7 @@ CREATE FUNCTION _vectors_svecf32_aggregate_avg_sum_combinefunc(internal, interna -- src/datatype/aggregate_svecf32.rs:278 -- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_avg_finalfunc CREATE FUNCTION "_vectors_svecf32_aggregate_avg_finalfunc"( - "state" internal /* pgrx::datum::internal::Internal */ + "state" internal /* pgrx::datum::internal::Internal */ ) RETURNS svector /* core::option::Option */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -920,7 +920,7 @@ AS 'MODULE_PATHNAME', '_vectors_pgvectors_upgrade_wrapper'; -- src/index/views.rs:18 -- vectors::index::views::_vectors_index_stat CREATE FUNCTION "_vectors_index_stat"( - "oid" oid /* pgrx_pg_sys::submodules::oids::Oid */ + "oid" oid /* pgrx_pg_sys::submodules::oids::Oid */ ) RETURNS vector_index_stat /* pgrx::heap_tuple::PgHeapTuple */ STRICT VOLATILE PARALLEL SAFE LANGUAGE c /* Rust */ @@ -929,9 +929,9 @@ AS 'MODULE_PATHNAME', '_vectors_index_stat_wrapper'; -- src/datatype/casts.rs:123 -- vectors::datatype::casts::_vectors_cast_veci8_to_vecf32 CREATE FUNCTION "_vectors_cast_veci8_to_vecf32"( - "vector" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" veci8, /* vectors::datatype::memory_veci8::Veci8Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -940,9 +940,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_veci8_to_vecf32_wrapper'; -- src/datatype/casts.rs:135 -- vectors::datatype::casts::_vectors_cast_vecf32_to_veci8 CREATE FUNCTION "_vectors_cast_vecf32_to_veci8"( - "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS veci8 /* vectors::datatype::memory_veci8::Veci8Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -951,9 +951,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_veci8_wrapper'; -- src/datatype/casts.rs:36 -- vectors::datatype::casts::_vectors_cast_vecf32_to_vecf16 CREATE FUNCTION "_vectors_cast_vecf32_to_vecf16"( - "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -962,9 +962,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_vecf16_wrapper'; -- src/datatype/casts.rs:56 -- vectors::datatype::casts::_vectors_cast_vecf32_to_svecf32 CREATE FUNCTION "_vectors_cast_vecf32_to_svecf32"( - "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -973,9 +973,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_svecf32_wrapper'; -- src/datatype/casts.rs:91 -- vectors::datatype::casts::_vectors_cast_vecf32_to_bvecf32 CREATE FUNCTION "_vectors_cast_vecf32_to_bvecf32"( - "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS bvector /* vectors::datatype::memory_bvecf32::BVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -984,9 +984,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_bvecf32_wrapper'; -- src/datatype/casts.rs:27 -- vectors::datatype::casts::_vectors_cast_vecf32_to_array CREATE FUNCTION "_vectors_cast_vecf32_to_array"( - "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS real[] /* alloc::vec::Vec */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -995,9 +995,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_array_wrapper'; -- src/datatype/casts.rs:46 -- vectors::datatype::casts::_vectors_cast_vecf16_to_vecf32 CREATE FUNCTION "_vectors_cast_vecf16_to_vecf32"( - "vector" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1006,9 +1006,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_vecf16_to_vecf32_wrapper'; -- src/datatype/casts.rs:81 -- vectors::datatype::casts::_vectors_cast_svecf32_to_vecf32 CREATE FUNCTION "_vectors_cast_svecf32_to_vecf32"( - "vector" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1017,9 +1017,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_svecf32_to_vecf32_wrapper'; -- src/datatype/casts.rs:109 -- vectors::datatype::casts::_vectors_cast_bvecf32_to_vecf32 CREATE FUNCTION "_vectors_cast_bvecf32_to_vecf32"( - "vector" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "_typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "vector" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1028,9 +1028,9 @@ AS 'MODULE_PATHNAME', '_vectors_cast_bvecf32_to_vecf32_wrapper'; -- src/datatype/casts.rs:12 -- vectors::datatype::casts::_vectors_cast_array_to_vecf32 CREATE FUNCTION "_vectors_cast_array_to_vecf32"( - "array" real[], /* pgrx::datum::array::Array */ - "typmod" INT, /* i32 */ - "_explicit" bool /* bool */ + "array" real[], /* pgrx::datum::array::Array */ + "typmod" INT, /* i32 */ + "_explicit" bool /* bool */ ) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1044,7 +1044,7 @@ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_bvecf3 -- src/datatype/binary_bvecf32.rs:11 -- vectors::datatype::binary_bvecf32::_vectors_bvecf32_send CREATE FUNCTION "_vectors_bvecf32_send"( - "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bytea /* vectors::datatype::binary::Bytea */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1053,9 +1053,9 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_send_wrapper'; -- src/datatype/binary_bvecf32.rs:25 -- vectors::datatype::binary_bvecf32::_vectors_bvecf32_recv CREATE FUNCTION "_vectors_bvecf32_recv"( - "internal" internal, /* pgrx::datum::internal::Internal */ - "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS bvector /* vectors::datatype::memory_bvecf32::BVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1064,7 +1064,7 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_recv_wrapper'; -- src/datatype/text_bvecf32.rs:42 -- vectors::datatype::text_bvecf32::_vectors_bvecf32_out CREATE FUNCTION "_vectors_bvecf32_out"( - "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS cstring /* alloc::ffi::c_str::CString */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1073,8 +1073,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_out_wrapper'; -- src/datatype/operators_bvecf32.rs:29 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_xor CREATE FUNCTION "_vectors_bvecf32_operator_xor"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bvector /* vectors::datatype::memory_bvecf32::BVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1083,8 +1083,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_xor_wrapper'; -- src/datatype/operators_bvecf32.rs:19 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_or CREATE FUNCTION "_vectors_bvecf32_operator_or"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bvector /* vectors::datatype::memory_bvecf32::BVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1093,8 +1093,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_or_wrapper'; -- src/datatype/operators_bvecf32.rs:69 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_neq CREATE FUNCTION "_vectors_bvecf32_operator_neq"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1103,8 +1103,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_neq_wrapper'; -- src/datatype/operators_bvecf32.rs:45 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_lte CREATE FUNCTION "_vectors_bvecf32_operator_lte"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1113,8 +1113,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_lte_wrapper'; -- src/datatype/operators_bvecf32.rs:39 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_lt CREATE FUNCTION "_vectors_bvecf32_operator_lt"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1123,8 +1123,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_lt_wrapper'; -- src/datatype/operators_bvecf32.rs:87 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_l2 CREATE FUNCTION "_vectors_bvecf32_operator_l2"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1133,8 +1133,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_l2_wrapper'; -- src/datatype/operators_bvecf32.rs:93 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_jaccard CREATE FUNCTION "_vectors_bvecf32_operator_jaccard"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1143,8 +1143,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_jaccard_wrapper'; -- src/datatype/operators_bvecf32.rs:57 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_gte CREATE FUNCTION "_vectors_bvecf32_operator_gte"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1153,8 +1153,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_gte_wrapper'; -- src/datatype/operators_bvecf32.rs:51 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_gt CREATE FUNCTION "_vectors_bvecf32_operator_gt"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1163,8 +1163,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_gt_wrapper'; -- src/datatype/operators_bvecf32.rs:63 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_eq CREATE FUNCTION "_vectors_bvecf32_operator_eq"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bool /* bool */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1173,8 +1173,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_eq_wrapper'; -- src/datatype/operators_bvecf32.rs:81 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_dot CREATE FUNCTION "_vectors_bvecf32_operator_dot"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1183,8 +1183,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_dot_wrapper'; -- src/datatype/operators_bvecf32.rs:75 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_cosine CREATE FUNCTION "_vectors_bvecf32_operator_cosine"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1193,8 +1193,8 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_cosine_wrapper'; -- src/datatype/operators_bvecf32.rs:9 -- vectors::datatype::operators_bvecf32::_vectors_bvecf32_operator_and CREATE FUNCTION "_vectors_bvecf32_operator_and"( - "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ - "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "lhs" bvector, /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "rhs" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS bvector /* vectors::datatype::memory_bvecf32::BVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1203,7 +1203,7 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_operator_and_wrapper'; -- src/datatype/functions_bvecf32.rs:12 -- vectors::datatype::functions_bvecf32::_vectors_bvecf32_norm CREATE FUNCTION "_vectors_bvecf32_norm"( - "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS real /* f32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1212,9 +1212,9 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_norm_wrapper'; -- src/datatype/text_bvecf32.rs:10 -- vectors::datatype::text_bvecf32::_vectors_bvecf32_in CREATE FUNCTION "_vectors_bvecf32_in"( - "input" cstring, /* &core::ffi::c_str::CStr */ - "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "typmod" INT /* i32 */ + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ ) RETURNS bvector /* vectors::datatype::memory_bvecf32::BVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1223,7 +1223,7 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_in_wrapper'; -- src/datatype/functions_bvecf32.rs:7 -- vectors::datatype::functions_bvecf32::_vectors_bvecf32_dims CREATE FUNCTION "_vectors_bvecf32_dims"( - "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ + "vector" bvector /* vectors::datatype::memory_bvecf32::BVecf32Input */ ) RETURNS INT /* i32 */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1232,7 +1232,7 @@ AS 'MODULE_PATHNAME', '_vectors_bvecf32_dims_wrapper'; -- src/datatype/functions_bvecf32.rs:17 -- vectors::datatype::functions_bvecf32::_vectors_binarize CREATE FUNCTION "_vectors_binarize"( - "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ ) RETURNS bvector /* vectors::datatype::memory_bvecf32::BVecf32Output */ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c /* Rust */ @@ -1246,15 +1246,15 @@ IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_amhand -- src/index/views.rs:8 -- vectors::index::views::_vectors_alter_vector_index CREATE FUNCTION "_vectors_alter_vector_index"( - "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ - "key" TEXT, /* alloc::string::String */ - "value" TEXT /* alloc::string::String */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "key" TEXT, /* alloc::string::String */ + "value" TEXT /* alloc::string::String */ ) RETURNS void STRICT VOLATILE LANGUAGE c /* Rust */ AS 'MODULE_PATHNAME', '_vectors_alter_vector_index_wrapper'; --- src/lib.rs:25 +-- src/lib.rs:23 -- finalize -- finalize begin diff --git a/sql/install/vectors--0.4.0.sql b/sql/install/vectors--0.4.0.sql new file mode 100644 index 000000000..1d9048a72 --- /dev/null +++ b/sql/install/vectors--0.4.0.sql @@ -0,0 +1,1967 @@ +/* +This file is auto generated by pgrx. + +The ordering of items is not stable, it is driven by a dependency graph. +*/ + +-- src/lib.rs:20 +-- bootstrap +-- bootstrap begin + +-- List of shell types + +CREATE TYPE vector; +CREATE TYPE vecf16; +CREATE TYPE svector; +CREATE TYPE bvector; + +CREATE TYPE vector_index_stat; + +CREATE TYPE sphere_vector; +CREATE TYPE sphere_vecf16; +CREATE TYPE sphere_svector; +CREATE TYPE sphere_bvector; + +-- bootstrap end + +-- src/datatype/subscript_vecf32.rs:10 +-- vectors::datatype::subscript_vecf32::_vectors_vecf32_subscript +CREATE FUNCTION _vectors_vecf32_subscript(internal) RETURNS internal +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_subscript_wrapper'; + +-- src/datatype/operators_vecf32.rs:109 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_sphere_l2_in +CREATE FUNCTION "_vectors_vecf32_sphere_l2_in"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" sphere_vector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_sphere_l2_in_wrapper'; + +-- src/datatype/operators_vecf32.rs:90 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_sphere_dot_in +CREATE FUNCTION "_vectors_vecf32_sphere_dot_in"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" sphere_vector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_sphere_dot_in_wrapper'; + +-- src/datatype/operators_vecf32.rs:128 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_sphere_cos_in +CREATE FUNCTION "_vectors_vecf32_sphere_cos_in"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" sphere_vector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_sphere_cos_in_wrapper'; + +-- src/datatype/binary_vecf32.rs:9 +-- vectors::datatype::binary_vecf32::_vectors_vecf32_send +CREATE FUNCTION "_vectors_vecf32_send"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_send_wrapper'; + +-- src/datatype/binary_vecf32.rs:24 +-- vectors::datatype::binary_vecf32::_vectors_vecf32_recv +CREATE FUNCTION "_vectors_vecf32_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_recv_wrapper'; + +-- src/datatype/text_vecf32.rs:30 +-- vectors::datatype::text_vecf32::_vectors_vecf32_out +CREATE FUNCTION "_vectors_vecf32_out"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_out_wrapper'; + +-- src/datatype/operators_vecf32.rs:16 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_sub +CREATE FUNCTION "_vectors_vecf32_operator_sub"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_sub_wrapper'; + +-- src/datatype/operators_vecf32.rs:66 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_neq +CREATE FUNCTION "_vectors_vecf32_operator_neq"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_neq_wrapper'; + +-- src/datatype/operators_vecf32.rs:26 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_mul +CREATE FUNCTION "_vectors_vecf32_operator_mul"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_mul_wrapper'; + +-- src/datatype/operators_vecf32.rs:42 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_lte +CREATE FUNCTION "_vectors_vecf32_operator_lte"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_lte_wrapper'; + +-- src/datatype/operators_vecf32.rs:36 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_lt +CREATE FUNCTION "_vectors_vecf32_operator_lt"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_lt_wrapper'; + +-- src/datatype/operators_vecf32.rs:78 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_l2 +CREATE FUNCTION "_vectors_vecf32_operator_l2"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_l2_wrapper'; + +-- src/datatype/operators_vecf32.rs:54 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_gte +CREATE FUNCTION "_vectors_vecf32_operator_gte"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_gte_wrapper'; + +-- src/datatype/operators_vecf32.rs:48 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_gt +CREATE FUNCTION "_vectors_vecf32_operator_gt"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_gt_wrapper'; + +-- src/datatype/operators_vecf32.rs:60 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_eq +CREATE FUNCTION "_vectors_vecf32_operator_eq"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_eq_wrapper'; + +-- src/datatype/operators_vecf32.rs:72 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_dot +CREATE FUNCTION "_vectors_vecf32_operator_dot"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_dot_wrapper'; + +-- src/datatype/operators_vecf32.rs:84 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_cos +CREATE FUNCTION "_vectors_vecf32_operator_cos"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_cos_wrapper'; + +-- src/datatype/operators_vecf32.rs:6 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_add +CREATE FUNCTION "_vectors_vecf32_operator_add"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_add_wrapper'; + +-- src/datatype/functions_vecf32.rs:15 +-- vectors::datatype::functions_vecf32::_vectors_vecf32_normalize +CREATE FUNCTION "_vectors_vecf32_normalize"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_normalize_wrapper'; + +-- src/datatype/functions_vecf32.rs:10 +-- vectors::datatype::functions_vecf32::_vectors_vecf32_norm +CREATE FUNCTION "_vectors_vecf32_norm"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_norm_wrapper'; + +-- src/datatype/text_vecf32.rs:9 +-- vectors::datatype::text_vecf32::_vectors_vecf32_in +CREATE FUNCTION "_vectors_vecf32_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_in_wrapper'; + +-- src/datatype/functions_vecf32.rs:5 +-- vectors::datatype::functions_vecf32::_vectors_vecf32_dims +CREATE FUNCTION "_vectors_vecf32_dims"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_dims_wrapper'; + +-- src/datatype/aggregate_vecf32.rs:142 +-- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_sum_finalfunc +CREATE FUNCTION "_vectors_vecf32_aggregate_sum_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS vector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_aggregate_sum_finalfunc_wrapper'; + +-- src/datatype/aggregate_vecf32.rs:42 +-- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_avg_sum_sfunc +CREATE FUNCTION _vectors_vecf32_aggregate_avg_sum_sfunc(internal, vector) RETURNS internal IMMUTABLE PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_aggregate_avg_sum_sfunc_wrapper'; + +-- src/datatype/aggregate_vecf32.rs:84 +-- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_avg_sum_combinefunc +CREATE FUNCTION _vectors_vecf32_aggregate_avg_sum_combinefunc(internal, internal) RETURNS internal IMMUTABLE PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_aggregate_avg_sum_combinefunc_wrapper'; + +-- src/datatype/aggregate_vecf32.rs:124 +-- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_avg_finalfunc +CREATE FUNCTION "_vectors_vecf32_aggregate_avg_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS vector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_aggregate_avg_finalfunc_wrapper'; + +-- src/datatype/subscript_vecf16.rs:10 +-- vectors::datatype::subscript_vecf16::_vectors_vecf16_subscript +CREATE FUNCTION _vectors_vecf16_subscript(internal) RETURNS internal +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16_subscript_wrapper'; + +-- src/datatype/operators_vecf16.rs:109 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_sphere_l2_in +CREATE FUNCTION "_vectors_vecf16_sphere_l2_in"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" sphere_vecf16 /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_sphere_l2_in_wrapper'; + +-- src/datatype/operators_vecf16.rs:90 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_sphere_dot_in +CREATE FUNCTION "_vectors_vecf16_sphere_dot_in"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" sphere_vecf16 /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_sphere_dot_in_wrapper'; + +-- src/datatype/operators_vecf16.rs:128 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_sphere_cos_in +CREATE FUNCTION "_vectors_vecf16_sphere_cos_in"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" sphere_vecf16 /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_sphere_cos_in_wrapper'; + +-- src/datatype/binary_vecf16.rs:10 +-- vectors::datatype::binary_vecf16::_vectors_vecf16_send +CREATE FUNCTION "_vectors_vecf16_send"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_send_wrapper'; + +-- src/datatype/binary_vecf16.rs:25 +-- vectors::datatype::binary_vecf16::_vectors_vecf16_recv +CREATE FUNCTION "_vectors_vecf16_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_recv_wrapper'; + +-- src/datatype/text_vecf16.rs:30 +-- vectors::datatype::text_vecf16::_vectors_vecf16_out +CREATE FUNCTION "_vectors_vecf16_out"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_out_wrapper'; + +-- src/datatype/operators_vecf16.rs:16 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_sub +CREATE FUNCTION "_vectors_vecf16_operator_sub"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_sub_wrapper'; + +-- src/datatype/operators_vecf16.rs:66 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_neq +CREATE FUNCTION "_vectors_vecf16_operator_neq"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_neq_wrapper'; + +-- src/datatype/operators_vecf16.rs:26 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_mul +CREATE FUNCTION "_vectors_vecf16_operator_mul"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_mul_wrapper'; + +-- src/datatype/operators_vecf16.rs:42 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_lte +CREATE FUNCTION "_vectors_vecf16_operator_lte"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_lte_wrapper'; + +-- src/datatype/operators_vecf16.rs:36 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_lt +CREATE FUNCTION "_vectors_vecf16_operator_lt"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_lt_wrapper'; + +-- src/datatype/operators_vecf16.rs:78 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_l2 +CREATE FUNCTION "_vectors_vecf16_operator_l2"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_l2_wrapper'; + +-- src/datatype/operators_vecf16.rs:54 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_gte +CREATE FUNCTION "_vectors_vecf16_operator_gte"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_gte_wrapper'; + +-- src/datatype/operators_vecf16.rs:48 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_gt +CREATE FUNCTION "_vectors_vecf16_operator_gt"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_gt_wrapper'; + +-- src/datatype/operators_vecf16.rs:60 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_eq +CREATE FUNCTION "_vectors_vecf16_operator_eq"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_eq_wrapper'; + +-- src/datatype/operators_vecf16.rs:72 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_dot +CREATE FUNCTION "_vectors_vecf16_operator_dot"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_dot_wrapper'; + +-- src/datatype/operators_vecf16.rs:84 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_cos +CREATE FUNCTION "_vectors_vecf16_operator_cos"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_cos_wrapper'; + +-- src/datatype/operators_vecf16.rs:6 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_add +CREATE FUNCTION "_vectors_vecf16_operator_add"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_add_wrapper'; + +-- src/datatype/functions_vecf16.rs:15 +-- vectors::datatype::functions_vecf16::_vectors_vecf16_normalize +CREATE FUNCTION "_vectors_vecf16_normalize"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_normalize_wrapper'; + +-- src/datatype/functions_vecf16.rs:10 +-- vectors::datatype::functions_vecf16::_vectors_vecf16_norm +CREATE FUNCTION "_vectors_vecf16_norm"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_norm_wrapper'; + +-- src/datatype/text_vecf16.rs:9 +-- vectors::datatype::text_vecf16::_vectors_vecf16_in +CREATE FUNCTION "_vectors_vecf16_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_in_wrapper'; + +-- src/datatype/functions_vecf16.rs:5 +-- vectors::datatype::functions_vecf16::_vectors_vecf16_dims +CREATE FUNCTION "_vectors_vecf16_dims"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_dims_wrapper'; + +-- src/datatype/typmod.rs:82 +-- vectors::datatype::typmod::_vectors_typmod_out +CREATE FUNCTION "_vectors_typmod_out"( + "typmod" INT /* i32 */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_typmod_out_wrapper'; + +-- src/datatype/typmod.rs:46 +-- vectors::datatype::typmod::_vectors_typmod_in_65535 +CREATE FUNCTION "_vectors_typmod_in_65535"( + "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_typmod_in_65535_wrapper'; + +-- src/datatype/typmod.rs:64 +-- vectors::datatype::typmod::_vectors_typmod_in_1048575 +CREATE FUNCTION "_vectors_typmod_in_1048575"( + "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_typmod_in_1048575_wrapper'; + +-- src/datatype/functions_svecf32.rs:21 +-- vectors::datatype::functions_svecf32::_vectors_to_svector +CREATE FUNCTION "_vectors_to_svector"( + "dims" INT, /* i32 */ + "index" INT[], /* pgrx::datum::array::Array */ + "value" real[] /* pgrx::datum::array::Array */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_to_svector_wrapper'; + +-- src/embedding/mod.rs:7 +-- vectors::embedding::_vectors_text2vec_openai +CREATE FUNCTION "_vectors_text2vec_openai"( + "input" TEXT, /* alloc::string::String */ + "model" TEXT /* alloc::string::String */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_text2vec_openai_wrapper'; + +-- src/datatype/subscript_svecf32.rs:10 +-- vectors::datatype::subscript_svecf32::_vectors_svecf32_subscript +CREATE FUNCTION _vectors_svecf32_subscript(internal) RETURNS internal +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_subscript_wrapper'; + +-- src/datatype/operators_svecf32.rs:109 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_sphere_l2_in +CREATE FUNCTION "_vectors_svecf32_sphere_l2_in"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" sphere_svector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_sphere_l2_in_wrapper'; + +-- src/datatype/operators_svecf32.rs:90 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_sphere_dot_in +CREATE FUNCTION "_vectors_svecf32_sphere_dot_in"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" sphere_svector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_sphere_dot_in_wrapper'; + +-- src/datatype/operators_svecf32.rs:128 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_sphere_cos_in +CREATE FUNCTION "_vectors_svecf32_sphere_cos_in"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" sphere_svector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_sphere_cos_in_wrapper'; + +-- src/datatype/binary_svecf32.rs:10 +-- vectors::datatype::binary_svecf32::_vectors_svecf32_send +CREATE FUNCTION "_vectors_svecf32_send"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_send_wrapper'; + +-- src/datatype/binary_svecf32.rs:29 +-- vectors::datatype::binary_svecf32::_vectors_svecf32_recv +CREATE FUNCTION "_vectors_svecf32_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_recv_wrapper'; + +-- src/datatype/text_svecf32.rs:78 +-- vectors::datatype::text_svecf32::_vectors_svecf32_out +CREATE FUNCTION "_vectors_svecf32_out"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_out_wrapper'; + +-- src/datatype/operators_svecf32.rs:16 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_sub +CREATE FUNCTION "_vectors_svecf32_operator_sub"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_sub_wrapper'; + +-- src/datatype/operators_svecf32.rs:66 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_neq +CREATE FUNCTION "_vectors_svecf32_operator_neq"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_neq_wrapper'; + +-- src/datatype/operators_svecf32.rs:26 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_mul +CREATE FUNCTION "_vectors_svecf32_operator_mul"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_mul_wrapper'; + +-- src/datatype/operators_svecf32.rs:42 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_lte +CREATE FUNCTION "_vectors_svecf32_operator_lte"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_lte_wrapper'; + +-- src/datatype/operators_svecf32.rs:36 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_lt +CREATE FUNCTION "_vectors_svecf32_operator_lt"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_lt_wrapper'; + +-- src/datatype/operators_svecf32.rs:78 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_l2 +CREATE FUNCTION "_vectors_svecf32_operator_l2"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_l2_wrapper'; + +-- src/datatype/operators_svecf32.rs:54 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_gte +CREATE FUNCTION "_vectors_svecf32_operator_gte"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_gte_wrapper'; + +-- src/datatype/operators_svecf32.rs:48 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_gt +CREATE FUNCTION "_vectors_svecf32_operator_gt"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_gt_wrapper'; + +-- src/datatype/operators_svecf32.rs:60 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_eq +CREATE FUNCTION "_vectors_svecf32_operator_eq"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_eq_wrapper'; + +-- src/datatype/operators_svecf32.rs:72 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_dot +CREATE FUNCTION "_vectors_svecf32_operator_dot"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_dot_wrapper'; + +-- src/datatype/operators_svecf32.rs:84 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_cos +CREATE FUNCTION "_vectors_svecf32_operator_cos"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_cos_wrapper'; + +-- src/datatype/operators_svecf32.rs:6 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_add +CREATE FUNCTION "_vectors_svecf32_operator_add"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_add_wrapper'; + +-- src/datatype/functions_svecf32.rs:16 +-- vectors::datatype::functions_svecf32::_vectors_svecf32_normalize +CREATE FUNCTION "_vectors_svecf32_normalize"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_normalize_wrapper'; + +-- src/datatype/functions_svecf32.rs:11 +-- vectors::datatype::functions_svecf32::_vectors_svecf32_norm +CREATE FUNCTION "_vectors_svecf32_norm"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_norm_wrapper'; + +-- src/datatype/text_svecf32.rs:10 +-- vectors::datatype::text_svecf32::_vectors_svecf32_in +CREATE FUNCTION "_vectors_svecf32_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_in_wrapper'; + +-- src/datatype/functions_svecf32.rs:6 +-- vectors::datatype::functions_svecf32::_vectors_svecf32_dims +CREATE FUNCTION "_vectors_svecf32_dims"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_dims_wrapper'; + +-- src/datatype/aggregate_svecf32.rs:276 +-- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_sum_finalfunc +CREATE FUNCTION "_vectors_svecf32_aggregate_sum_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS svector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_aggregate_sum_finalfunc_wrapper'; + +-- src/datatype/aggregate_svecf32.rs:137 +-- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_avg_sum_sfunc +CREATE FUNCTION _vectors_svecf32_aggregate_avg_sum_sfunc(internal, svector) RETURNS internal IMMUTABLE PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_aggregate_avg_sum_sfunc_wrapper'; + +-- src/datatype/aggregate_svecf32.rs:195 +-- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_avg_sum_combinefunc +CREATE FUNCTION _vectors_svecf32_aggregate_avg_sum_combinefunc(internal, internal) RETURNS internal IMMUTABLE PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_aggregate_avg_sum_combinefunc_wrapper'; + +-- src/datatype/aggregate_svecf32.rs:253 +-- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_avg_finalfunc +CREATE FUNCTION "_vectors_svecf32_aggregate_avg_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS svector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_aggregate_avg_finalfunc_wrapper'; + +-- src/index/functions.rs:7 +-- vectors::index::functions::_vectors_pgvectors_upgrade +CREATE FUNCTION "_vectors_pgvectors_upgrade"() RETURNS void +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_pgvectors_upgrade_wrapper'; + +-- src/index/views.rs:17 +-- vectors::index::views::_vectors_index_stat +CREATE FUNCTION "_vectors_index_stat"( + "oid" oid /* pgrx_pg_sys::submodules::oids::Oid */ +) RETURNS vector_index_stat /* pgrx::heap_tuple::PgHeapTuple */ +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_index_stat_wrapper'; + +-- src/index/functions.rs:15 +-- vectors::index::functions::_vectors_fence_vector_index +CREATE FUNCTION "_vectors_fence_vector_index"( + "oid" oid /* pgrx_pg_sys::submodules::oids::Oid */ +) RETURNS void +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_fence_vector_index_wrapper'; + +-- src/datatype/casts.rs:35 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_vecf16 +CREATE FUNCTION "_vectors_cast_vecf32_to_vecf16"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_vecf16_wrapper'; + +-- src/datatype/casts.rs:55 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_svecf32 +CREATE FUNCTION "_vectors_cast_vecf32_to_svecf32"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_svecf32_wrapper'; + +-- src/datatype/casts.rs:89 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_bvector +CREATE FUNCTION "_vectors_cast_vecf32_to_bvector"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_bvector_wrapper'; + +-- src/datatype/casts.rs:26 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_array +CREATE FUNCTION "_vectors_cast_vecf32_to_array"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS real[] /* alloc::vec::Vec */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_array_wrapper'; + +-- src/datatype/casts.rs:45 +-- vectors::datatype::casts::_vectors_cast_vecf16_to_vecf32 +CREATE FUNCTION "_vectors_cast_vecf16_to_vecf32"( + "vector" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf16_to_vecf32_wrapper'; + +-- src/datatype/casts.rs:73 +-- vectors::datatype::casts::_vectors_cast_svecf32_to_vecf32 +CREATE FUNCTION "_vectors_cast_svecf32_to_vecf32"( + "vector" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_svecf32_to_vecf32_wrapper'; + +-- src/datatype/casts.rs:108 +-- vectors::datatype::casts::_vectors_cast_bvector_to_vecf32 +CREATE FUNCTION "_vectors_cast_bvector_to_vecf32"( + "vector" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_bvector_to_vecf32_wrapper'; + +-- src/datatype/casts.rs:10 +-- vectors::datatype::casts::_vectors_cast_array_to_vecf32 +CREATE FUNCTION "_vectors_cast_array_to_vecf32"( + "array" real[], /* pgrx::datum::array::Array */ + "typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_array_to_vecf32_wrapper'; + +-- src/datatype/subscript_bvector.rs:10 +-- vectors::datatype::subscript_bvector::_vectors_bvector_subscript +CREATE FUNCTION _vectors_bvector_subscript(internal) RETURNS internal +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_bvector_subscript_wrapper'; + +-- src/datatype/operators_bvector.rs:128 +-- vectors::datatype::operators_bvector::_vectors_bvector_sphere_jaccard_in +CREATE FUNCTION "_vectors_bvector_sphere_jaccard_in"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" sphere_bvector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_sphere_jaccard_in_wrapper'; + +-- src/datatype/operators_bvector.rs:109 +-- vectors::datatype::operators_bvector::_vectors_bvector_sphere_hamming_in +CREATE FUNCTION "_vectors_bvector_sphere_hamming_in"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" sphere_bvector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_sphere_hamming_in_wrapper'; + +-- src/datatype/operators_bvector.rs:90 +-- vectors::datatype::operators_bvector::_vectors_bvector_sphere_dot_in +CREATE FUNCTION "_vectors_bvector_sphere_dot_in"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" sphere_bvector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_sphere_dot_in_wrapper'; + +-- src/datatype/binary_bvector.rs:10 +-- vectors::datatype::binary_bvector::_vectors_bvector_send +CREATE FUNCTION "_vectors_bvector_send"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_send_wrapper'; + +-- src/datatype/binary_bvector.rs:25 +-- vectors::datatype::binary_bvector::_vectors_bvector_recv +CREATE FUNCTION "_vectors_bvector_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_recv_wrapper'; + +-- src/datatype/text_bvector.rs:42 +-- vectors::datatype::text_bvector::_vectors_bvector_out +CREATE FUNCTION "_vectors_bvector_out"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_out_wrapper'; + +-- src/datatype/operators_bvector.rs:26 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_xor +CREATE FUNCTION "_vectors_bvector_operator_xor"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_xor_wrapper'; + +-- src/datatype/operators_bvector.rs:16 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_or +CREATE FUNCTION "_vectors_bvector_operator_or"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_or_wrapper'; + +-- src/datatype/operators_bvector.rs:66 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_neq +CREATE FUNCTION "_vectors_bvector_operator_neq"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_neq_wrapper'; + +-- src/datatype/operators_bvector.rs:42 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_lte +CREATE FUNCTION "_vectors_bvector_operator_lte"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_lte_wrapper'; + +-- src/datatype/operators_bvector.rs:36 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_lt +CREATE FUNCTION "_vectors_bvector_operator_lt"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_lt_wrapper'; + +-- src/datatype/operators_bvector.rs:84 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_jaccard +CREATE FUNCTION "_vectors_bvector_operator_jaccard"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_jaccard_wrapper'; + +-- src/datatype/operators_bvector.rs:78 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_hamming +CREATE FUNCTION "_vectors_bvector_operator_hamming"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_hamming_wrapper'; + +-- src/datatype/operators_bvector.rs:54 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_gte +CREATE FUNCTION "_vectors_bvector_operator_gte"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_gte_wrapper'; + +-- src/datatype/operators_bvector.rs:48 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_gt +CREATE FUNCTION "_vectors_bvector_operator_gt"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_gt_wrapper'; + +-- src/datatype/operators_bvector.rs:60 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_eq +CREATE FUNCTION "_vectors_bvector_operator_eq"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_eq_wrapper'; + +-- src/datatype/operators_bvector.rs:72 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_dot +CREATE FUNCTION "_vectors_bvector_operator_dot"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_dot_wrapper'; + +-- src/datatype/operators_bvector.rs:6 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_and +CREATE FUNCTION "_vectors_bvector_operator_and"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_and_wrapper'; + +-- src/datatype/functions_bvector.rs:11 +-- vectors::datatype::functions_bvector::_vectors_bvector_norm +CREATE FUNCTION "_vectors_bvector_norm"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_norm_wrapper'; + +-- src/datatype/text_bvector.rs:9 +-- vectors::datatype::text_bvector::_vectors_bvector_in +CREATE FUNCTION "_vectors_bvector_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_in_wrapper'; + +-- src/datatype/functions_bvector.rs:6 +-- vectors::datatype::functions_bvector::_vectors_bvector_dims +CREATE FUNCTION "_vectors_bvector_dims"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_dims_wrapper'; + +-- src/datatype/functions_bvector.rs:16 +-- vectors::datatype::functions_bvector::_vectors_binarize +CREATE FUNCTION "_vectors_binarize"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_binarize_wrapper'; + +-- src/index/am.rs:33 +-- vectors::index::am::_vectors_amhandler +CREATE FUNCTION _vectors_amhandler(internal) RETURNS index_am_handler +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_amhandler_wrapper'; + +-- src/index/views.rs:7 +-- vectors::index::views::_vectors_alter_vector_index +CREATE FUNCTION "_vectors_alter_vector_index"( + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "key" TEXT, /* alloc::string::String */ + "value" TEXT /* alloc::string::String */ +) RETURNS void +STRICT VOLATILE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_alter_vector_index_wrapper'; + +-- src/lib.rs:21 +-- finalize +-- finalize begin + +-- List of data types + +CREATE TYPE vector ( + INPUT = _vectors_vecf32_in, + OUTPUT = _vectors_vecf32_out, + RECEIVE = _vectors_vecf32_recv, + SEND = _vectors_vecf32_send, + SUBSCRIPT = _vectors_vecf32_subscript, + TYPMOD_IN = _vectors_typmod_in_65535, + TYPMOD_OUT = _vectors_typmod_out, + STORAGE = EXTERNAL, + INTERNALLENGTH = VARIABLE, + ALIGNMENT = double +); + +CREATE TYPE vecf16 ( + INPUT = _vectors_vecf16_in, + OUTPUT = _vectors_vecf16_out, + RECEIVE = _vectors_vecf16_recv, + SEND = _vectors_vecf16_send, + SUBSCRIPT = _vectors_vecf16_subscript, + TYPMOD_IN = _vectors_typmod_in_65535, + TYPMOD_OUT = _vectors_typmod_out, + STORAGE = EXTERNAL, + INTERNALLENGTH = VARIABLE, + ALIGNMENT = double +); + +CREATE TYPE svector ( + INPUT = _vectors_svecf32_in, + OUTPUT = _vectors_svecf32_out, + RECEIVE = _vectors_svecf32_recv, + SEND = _vectors_svecf32_send, + SUBSCRIPT = _vectors_svecf32_subscript, + TYPMOD_IN = _vectors_typmod_in_1048575, + TYPMOD_OUT = _vectors_typmod_out, + STORAGE = EXTERNAL, + INTERNALLENGTH = VARIABLE, + ALIGNMENT = double +); + +CREATE TYPE bvector ( + INPUT = _vectors_bvector_in, + OUTPUT = _vectors_bvector_out, + RECEIVE = _vectors_bvector_recv, + SEND = _vectors_bvector_send, + SUBSCRIPT = _vectors_bvector_subscript, + TYPMOD_IN = _vectors_typmod_in_65535, + TYPMOD_OUT = _vectors_typmod_out, + STORAGE = EXTERNAL, + INTERNALLENGTH = VARIABLE, + ALIGNMENT = double +); + +CREATE TYPE vector_index_stat AS ( + idx_status TEXT, + idx_indexing BOOL, + idx_tuples BIGINT, + idx_sealed BIGINT[], + idx_growing BIGINT[], + idx_write BIGINT, + idx_size BIGINT, + idx_options TEXT +); + +CREATE TYPE sphere_vector AS ( + center vector, + radius REAL +); + +CREATE TYPE sphere_vecf16 AS ( + center vecf16, + radius REAL +); + +CREATE TYPE sphere_svector AS ( + center svector, + radius REAL +); + +CREATE TYPE sphere_bvector AS ( + center bvector, + radius REAL +); + +-- List of operators + +CREATE OPERATOR + ( + PROCEDURE = _vectors_vecf32_operator_add, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = + +); + +CREATE OPERATOR + ( + PROCEDURE = _vectors_vecf16_operator_add, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = + +); + +CREATE OPERATOR + ( + PROCEDURE = _vectors_svecf32_operator_add, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = + +); + +CREATE OPERATOR - ( + PROCEDURE = _vectors_vecf32_operator_sub, + LEFTARG = vector, + RIGHTARG = vector +); + +CREATE OPERATOR - ( + PROCEDURE = _vectors_vecf16_operator_sub, + LEFTARG = vecf16, + RIGHTARG = vecf16 +); + +CREATE OPERATOR - ( + PROCEDURE = _vectors_svecf32_operator_sub, + LEFTARG = svector, + RIGHTARG = svector +); + +CREATE OPERATOR * ( + PROCEDURE = _vectors_vecf32_operator_mul, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = * +); + +CREATE OPERATOR * ( + PROCEDURE = _vectors_vecf16_operator_mul, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = * +); + +CREATE OPERATOR * ( + PROCEDURE = _vectors_svecf32_operator_mul, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = * +); + +CREATE OPERATOR & ( + PROCEDURE = _vectors_bvector_operator_and, + LEFTARG = bvector, + RIGHTARG = bvector +); + +CREATE OPERATOR | ( + PROCEDURE = _vectors_bvector_operator_or, + LEFTARG = bvector, + RIGHTARG = bvector +); + +CREATE OPERATOR ^ ( + PROCEDURE = _vectors_bvector_operator_xor, + LEFTARG = bvector, + RIGHTARG = bvector +); + +CREATE OPERATOR = ( + PROCEDURE = _vectors_vecf32_operator_eq, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = =, + NEGATOR = <>, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR = ( + PROCEDURE = _vectors_vecf16_operator_eq, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = =, + NEGATOR = <>, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR = ( + PROCEDURE = _vectors_svecf32_operator_eq, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = =, + NEGATOR = <>, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR = ( + PROCEDURE = _vectors_bvector_operator_eq, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = =, + NEGATOR = <>, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR <> ( + PROCEDURE = _vectors_vecf32_operator_neq, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = <>, + NEGATOR = =, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR <> ( + PROCEDURE = _vectors_vecf16_operator_neq, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = <>, + NEGATOR = =, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR <> ( + PROCEDURE = _vectors_svecf32_operator_neq, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = <>, + NEGATOR = =, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR <> ( + PROCEDURE = _vectors_bvector_operator_neq, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = <>, + NEGATOR = =, + RESTRICT = eqsel, + JOIN = eqjoinsel +); + +CREATE OPERATOR < ( + PROCEDURE = _vectors_vecf32_operator_lt, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = >, + NEGATOR = >=, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR < ( + PROCEDURE = _vectors_vecf16_operator_lt, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = >, + NEGATOR = >=, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR < ( + PROCEDURE = _vectors_svecf32_operator_lt, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = >, + NEGATOR = >=, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR < ( + PROCEDURE = _vectors_bvector_operator_lt, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = >, + NEGATOR = >=, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR > ( + PROCEDURE = _vectors_vecf32_operator_gt, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = <, + NEGATOR = <=, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR > ( + PROCEDURE = _vectors_vecf16_operator_gt, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = <, + NEGATOR = <=, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR > ( + PROCEDURE = _vectors_svecf32_operator_gt, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = <, + NEGATOR = <=, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR > ( + PROCEDURE = _vectors_bvector_operator_gt, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = <, + NEGATOR = <=, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR <= ( + PROCEDURE = _vectors_vecf32_operator_lte, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = >=, + NEGATOR = >, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR <= ( + PROCEDURE = _vectors_vecf16_operator_lte, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = >=, + NEGATOR = >, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR <= ( + PROCEDURE = _vectors_svecf32_operator_lte, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = >=, + NEGATOR = >, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR <= ( + PROCEDURE = _vectors_bvector_operator_lte, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = >=, + NEGATOR = >, + RESTRICT = scalarltsel, + JOIN = scalarltjoinsel +); + +CREATE OPERATOR >= ( + PROCEDURE = _vectors_vecf32_operator_gte, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = <=, + NEGATOR = <, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR >= ( + PROCEDURE = _vectors_vecf16_operator_gte, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = <=, + NEGATOR = <, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR >= ( + PROCEDURE = _vectors_svecf32_operator_gte, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = <=, + NEGATOR = <, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR >= ( + PROCEDURE = _vectors_bvector_operator_gte, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = <=, + NEGATOR = <, + RESTRICT = scalargtsel, + JOIN = scalargtjoinsel +); + +CREATE OPERATOR <-> ( + PROCEDURE = _vectors_vecf32_operator_l2, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = <-> +); + +CREATE OPERATOR <-> ( + PROCEDURE = _vectors_vecf16_operator_l2, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = <-> +); + +CREATE OPERATOR <-> ( + PROCEDURE = _vectors_svecf32_operator_l2, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = <-> +); + +CREATE OPERATOR <-> ( + PROCEDURE = _vectors_bvector_operator_hamming, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = <-> +); + +CREATE OPERATOR <#> ( + PROCEDURE = _vectors_vecf32_operator_dot, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = <#> +); + +CREATE OPERATOR <#> ( + PROCEDURE = _vectors_vecf16_operator_dot, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = <#> +); + +CREATE OPERATOR <#> ( + PROCEDURE = _vectors_svecf32_operator_dot, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = <#> +); + +CREATE OPERATOR <#> ( + PROCEDURE = _vectors_bvector_operator_dot, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = <#> +); + +CREATE OPERATOR <=> ( + PROCEDURE = _vectors_vecf32_operator_cos, + LEFTARG = vector, + RIGHTARG = vector, + COMMUTATOR = <=> +); + +CREATE OPERATOR <=> ( + PROCEDURE = _vectors_vecf16_operator_cos, + LEFTARG = vecf16, + RIGHTARG = vecf16, + COMMUTATOR = <=> +); + +CREATE OPERATOR <=> ( + PROCEDURE = _vectors_svecf32_operator_cos, + LEFTARG = svector, + RIGHTARG = svector, + COMMUTATOR = <=> +); + +CREATE OPERATOR <~> ( + PROCEDURE = _vectors_bvector_operator_jaccard, + LEFTARG = bvector, + RIGHTARG = bvector, + COMMUTATOR = <~> +); + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_vecf32_sphere_l2_in, + LEFTARG = vector, + RIGHTARG = sphere_vector, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_vecf16_sphere_l2_in, + LEFTARG = vecf16, + RIGHTARG = sphere_vecf16, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_svecf32_sphere_l2_in, + LEFTARG = svector, + RIGHTARG = sphere_svector, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_bvector_sphere_hamming_in, + LEFTARG = bvector, + RIGHTARG = sphere_bvector, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_vecf32_sphere_dot_in, + LEFTARG = vector, + RIGHTARG = sphere_vector, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_vecf16_sphere_dot_in, + LEFTARG = vecf16, + RIGHTARG = sphere_vecf16, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_svecf32_sphere_dot_in, + LEFTARG = svector, + RIGHTARG = sphere_svector, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_bvector_sphere_dot_in, + LEFTARG = bvector, + RIGHTARG = sphere_bvector, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<=>> ( + PROCEDURE = _vectors_vecf32_sphere_cos_in, + LEFTARG = vector, + RIGHTARG = sphere_vector, + COMMUTATOR = <<=>> +); + +CREATE OPERATOR <<=>> ( + PROCEDURE = _vectors_vecf16_sphere_cos_in, + LEFTARG = vecf16, + RIGHTARG = sphere_vecf16, + COMMUTATOR = <<=>> +); + +CREATE OPERATOR <<=>> ( + PROCEDURE = _vectors_svecf32_sphere_cos_in, + LEFTARG = svector, + RIGHTARG = sphere_svector, + COMMUTATOR = <<=>> +); + +CREATE OPERATOR <<~>> ( + PROCEDURE = _vectors_bvector_sphere_jaccard_in, + LEFTARG = bvector, + RIGHTARG = sphere_bvector, + COMMUTATOR = <<~>> +); + +-- List of functions + +CREATE FUNCTION pgvectors_upgrade() RETURNS void +STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_pgvectors_upgrade_wrapper'; + +CREATE FUNCTION text2vec_openai("input" TEXT, "model" TEXT) RETURNS vector +STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_text2vec_openai_wrapper'; + +CREATE FUNCTION text2vec_openai_v3(input TEXT) RETURNS vector +STRICT PARALLEL SAFE LANGUAGE plpgsql AS +$$ +DECLARE +variable vector; +BEGIN + variable := text2vec_openai(input, 'text-embedding-3-small'); + RETURN variable; +END; +$$; + +CREATE FUNCTION alter_vector_index("index" OID, "key" TEXT, "value" TEXT) RETURNS void +STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_alter_vector_index_wrapper'; + +CREATE FUNCTION fence_vector_index(oid) RETURNS void +STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_fence_vector_index_wrapper'; + +CREATE FUNCTION vector_dims(vector) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_dims_wrapper'; + +CREATE FUNCTION vector_dims(vecf16) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16_dims_wrapper'; + +CREATE FUNCTION vector_dims(svector) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_dims_wrapper'; + +CREATE FUNCTION vector_dims(bvector) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_bvector_dims_wrapper'; + +CREATE FUNCTION vector_norm(vector) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_norm_wrapper'; + +CREATE FUNCTION vector_norm(vecf16) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16_norm_wrapper'; + +CREATE FUNCTION vector_norm(svector) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_norm_wrapper'; + +CREATE FUNCTION vector_norm(bvector) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_bvector_norm_wrapper'; + +CREATE FUNCTION vector_normalize(vector) RETURNS vector +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_normalize_wrapper'; + +CREATE FUNCTION vector_normalize(vecf16) RETURNS vecf16 +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16_normalize_wrapper'; + +CREATE FUNCTION vector_normalize(svector) RETURNS svector +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_normalize_wrapper'; + +CREATE FUNCTION to_svector("dims" INT, "indexes" INT[], "values" real[]) RETURNS svector +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_to_svector_wrapper'; + +CREATE FUNCTION binarize("vector" vector) RETURNS bvector +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_binarize_wrapper'; + +CREATE FUNCTION sphere(vector, real) RETURNS sphere_vector +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +CREATE FUNCTION sphere(vecf16, real) RETURNS sphere_vecf16 +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +CREATE FUNCTION sphere(svector, real) RETURNS sphere_svector +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +CREATE FUNCTION sphere(bvector, real) RETURNS sphere_bvector +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +-- List of aggregates + +CREATE AGGREGATE avg(vector) ( + SFUNC = _vectors_vecf32_aggregate_avg_sum_sfunc, + STYPE = internal, + COMBINEFUNC = _vectors_vecf32_aggregate_avg_sum_combinefunc, + FINALFUNC = _vectors_vecf32_aggregate_avg_finalfunc, + PARALLEL = SAFE +); + +CREATE AGGREGATE sum(vector) ( + SFUNC = _vectors_vecf32_aggregate_avg_sum_sfunc, + STYPE = internal, + COMBINEFUNC = _vectors_vecf32_aggregate_avg_sum_combinefunc, + FINALFUNC = _vectors_vecf32_aggregate_sum_finalfunc, + PARALLEL = SAFE +); + +CREATE AGGREGATE avg(svector) ( + SFUNC = _vectors_svecf32_aggregate_avg_sum_sfunc, + STYPE = internal, + COMBINEFUNC = _vectors_svecf32_aggregate_avg_sum_combinefunc, + FINALFUNC = _vectors_svecf32_aggregate_avg_finalfunc, + PARALLEL = SAFE +); + +CREATE AGGREGATE sum(svector) ( + SFUNC = _vectors_svecf32_aggregate_avg_sum_sfunc, + STYPE = internal, + COMBINEFUNC = _vectors_svecf32_aggregate_avg_sum_combinefunc, + FINALFUNC = _vectors_svecf32_aggregate_sum_finalfunc, + PARALLEL = SAFE +); + +-- List of casts + +CREATE CAST (real[] AS vector) + WITH FUNCTION _vectors_cast_array_to_vecf32(real[], integer, boolean) AS IMPLICIT; + +CREATE CAST (vector AS real[]) + WITH FUNCTION _vectors_cast_vecf32_to_array(vector, integer, boolean) AS IMPLICIT; + +CREATE CAST (vector AS vecf16) + WITH FUNCTION _vectors_cast_vecf32_to_vecf16(vector, integer, boolean); + +CREATE CAST (vecf16 AS vector) + WITH FUNCTION _vectors_cast_vecf16_to_vecf32(vecf16, integer, boolean); + +CREATE CAST (vector AS svector) + WITH FUNCTION _vectors_cast_vecf32_to_svecf32(vector, integer, boolean); + +CREATE CAST (svector AS vector) + WITH FUNCTION _vectors_cast_svecf32_to_vecf32(svector, integer, boolean); + +CREATE CAST (vector AS bvector) + WITH FUNCTION _vectors_cast_vecf32_to_bvector(vector, integer, boolean); + +CREATE CAST (bvector AS vector) + WITH FUNCTION _vectors_cast_bvector_to_vecf32(bvector, integer, boolean); + +-- List of access methods + +CREATE ACCESS METHOD vectors TYPE INDEX HANDLER _vectors_amhandler; +COMMENT ON ACCESS METHOD vectors IS 'pgvecto.rs index access method'; + +-- List of operator families + +CREATE OPERATOR FAMILY vector_l2_ops USING vectors; + +CREATE OPERATOR FAMILY vector_dot_ops USING vectors; + +CREATE OPERATOR FAMILY vector_cos_ops USING vectors; + +CREATE OPERATOR FAMILY vecf16_l2_ops USING vectors; + +CREATE OPERATOR FAMILY vecf16_dot_ops USING vectors; + +CREATE OPERATOR FAMILY vecf16_cos_ops USING vectors; + +CREATE OPERATOR FAMILY svector_l2_ops USING vectors; + +CREATE OPERATOR FAMILY svector_dot_ops USING vectors; + +CREATE OPERATOR FAMILY svector_cos_ops USING vectors; + +CREATE OPERATOR FAMILY bvector_hamming_ops USING vectors; + +CREATE OPERATOR FAMILY bvector_dot_ops USING vectors; + +CREATE OPERATOR FAMILY bvector_jaccard_ops USING vectors; + +-- List of operator classes + +CREATE OPERATOR CLASS vector_l2_ops + FOR TYPE vector USING vectors FAMILY vector_l2_ops AS + OPERATOR 1 <-> (vector, vector) FOR ORDER BY float_ops, + OPERATOR 2 <<->> (vector, sphere_vector) FOR SEARCH; + +CREATE OPERATOR CLASS vector_dot_ops + FOR TYPE vector USING vectors FAMILY vector_dot_ops AS + OPERATOR 1 <#> (vector, vector) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (vector, sphere_vector) FOR SEARCH; + +CREATE OPERATOR CLASS vector_cos_ops + FOR TYPE vector USING vectors FAMILY vector_cos_ops AS + OPERATOR 1 <=> (vector, vector) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (vector, sphere_vector) FOR SEARCH; + +CREATE OPERATOR CLASS vecf16_l2_ops + FOR TYPE vecf16 USING vectors FAMILY vecf16_l2_ops AS + OPERATOR 1 <-> (vecf16, vecf16) FOR ORDER BY float_ops, + OPERATOR 2 <<->> (vecf16, sphere_vecf16) FOR SEARCH; + +CREATE OPERATOR CLASS vecf16_dot_ops + FOR TYPE vecf16 USING vectors FAMILY vecf16_dot_ops AS + OPERATOR 1 <#> (vecf16, vecf16) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (vecf16, sphere_vecf16) FOR SEARCH; + +CREATE OPERATOR CLASS vecf16_cos_ops + FOR TYPE vecf16 USING vectors FAMILY vecf16_cos_ops AS + OPERATOR 1 <=> (vecf16, vecf16) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (vecf16, sphere_vecf16) FOR SEARCH; + +CREATE OPERATOR CLASS svector_l2_ops + FOR TYPE svector USING vectors FAMILY svector_l2_ops AS + OPERATOR 1 <-> (svector, svector) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (svector, sphere_svector) FOR SEARCH; + +CREATE OPERATOR CLASS svector_dot_ops + FOR TYPE svector USING vectors FAMILY svector_dot_ops AS + OPERATOR 1 <#> (svector, svector) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (svector, sphere_svector) FOR SEARCH; + +CREATE OPERATOR CLASS svector_cos_ops + FOR TYPE svector USING vectors FAMILY svector_cos_ops AS + OPERATOR 1 <=> (svector, svector) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (svector, sphere_svector) FOR SEARCH; + +CREATE OPERATOR CLASS bvector_hamming_ops + FOR TYPE bvector USING vectors FAMILY bvector_hamming_ops AS + OPERATOR 1 <-> (bvector, bvector) FOR ORDER BY float_ops, + OPERATOR 2 <<->> (bvector, sphere_bvector) FOR SEARCH; + +CREATE OPERATOR CLASS bvector_dot_ops + FOR TYPE bvector USING vectors FAMILY bvector_dot_ops AS + OPERATOR 1 <#> (bvector, bvector) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (bvector, sphere_bvector) FOR SEARCH; + +CREATE OPERATOR CLASS bvector_jaccard_ops + FOR TYPE bvector USING vectors FAMILY bvector_jaccard_ops AS + OPERATOR 1 <~> (bvector, bvector) FOR ORDER BY float_ops, + OPERATOR 2 <<~>> (bvector, sphere_bvector) FOR SEARCH; + +-- List of views + +CREATE VIEW pg_vector_index_stat AS + SELECT + C.oid AS tablerelid, + I.oid AS indexrelid, + C.relname AS tablename, + I.relname AS indexname, + (_vectors_index_stat(I.oid)).* + FROM pg_class C JOIN + pg_index X ON C.oid = X.indrelid JOIN + pg_class I ON I.oid = X.indexrelid JOIN + pg_am A ON A.oid = I.relam + WHERE A.amname = 'vectors' AND C.relkind = 'r'; + +GRANT SELECT ON TABLE pg_vector_index_stat TO PUBLIC; + +-- finalize end diff --git a/sql/upgrade/vectors--0.3.0--0.4.0.sql b/sql/upgrade/vectors--0.3.0--0.4.0.sql new file mode 100644 index 000000000..08206d0bb --- /dev/null +++ b/sql/upgrade/vectors--0.3.0--0.4.0.sql @@ -0,0 +1,1511 @@ +-- Drop functions that are not referenced + +DROP FUNCTION _vectors_svecf32_div; +DROP FUNCTION _vectors_veci8_normalize; + +-- List of shell types + +CREATE TYPE sphere_vector; +CREATE TYPE sphere_vecf16; +CREATE TYPE sphere_svector; +CREATE TYPE sphere_bvector; + +-- Rename internal functions + +ALTER FUNCTION _vectors_vecf32_operator_minus RENAME TO _vectors_vecf32_operator_sub; +ALTER FUNCTION _vectors_vecf16_operator_minus RENAME TO _vectors_vecf16_operator_sub; +ALTER FUNCTION _vectors_svecf32_operator_minus RENAME TO _vectors_svecf32_operator_sub; + +ALTER FUNCTION _vectors_vecf32_operator_cosine RENAME TO _vectors_vecf32_operator_cos; +ALTER FUNCTION _vectors_vecf16_operator_cosine RENAME TO _vectors_vecf16_operator_cos; +ALTER FUNCTION _vectors_svecf32_operator_cosine RENAME TO _vectors_svecf32_operator_cos; + +ALTER FUNCTION _vectors_cast_vecf32_to_bvecf32 RENAME TO _vectors_cast_vecf32_to_bvector; +ALTER FUNCTION _vectors_cast_bvecf32_to_vecf32 RENAME TO _vectors_cast_bvector_to_vecf32; +ALTER FUNCTION _vectors_bvecf32_subscript RENAME TO _vectors_bvector_subscript; +ALTER FUNCTION _vectors_bvecf32_send RENAME TO _vectors_bvector_send; +ALTER FUNCTION _vectors_bvecf32_recv RENAME TO _vectors_bvector_recv; +ALTER FUNCTION _vectors_bvecf32_out RENAME TO _vectors_bvector_out; +ALTER FUNCTION _vectors_bvecf32_operator_xor RENAME TO _vectors_bvector_operator_xor; +ALTER FUNCTION _vectors_bvecf32_operator_or RENAME TO _vectors_bvector_operator_or; +ALTER FUNCTION _vectors_bvecf32_operator_neq RENAME TO _vectors_bvector_operator_neq; +ALTER FUNCTION _vectors_bvecf32_operator_lte RENAME TO _vectors_bvector_operator_lte; +ALTER FUNCTION _vectors_bvecf32_operator_lt RENAME TO _vectors_bvector_operator_lt; +ALTER FUNCTION _vectors_bvecf32_operator_l2 RENAME TO _vectors_bvector_operator_hamming; +ALTER FUNCTION _vectors_bvecf32_operator_jaccard RENAME TO _vectors_bvector_operator_jaccard; +ALTER FUNCTION _vectors_bvecf32_operator_gte RENAME TO _vectors_bvector_operator_gte; +ALTER FUNCTION _vectors_bvecf32_operator_gt RENAME TO _vectors_bvector_operator_gt; +ALTER FUNCTION _vectors_bvecf32_operator_eq RENAME TO _vectors_bvector_operator_eq; +ALTER FUNCTION _vectors_bvecf32_operator_dot RENAME TO _vectors_bvector_operator_dot; +ALTER FUNCTION _vectors_bvecf32_operator_and RENAME TO _vectors_bvector_operator_and; +ALTER FUNCTION _vectors_bvecf32_norm RENAME TO _vectors_bvector_norm; +ALTER FUNCTION _vectors_bvecf32_in RENAME TO _vectors_bvector_in; +ALTER FUNCTION _vectors_bvecf32_dims RENAME TO _vectors_bvector_dims; + +-- List of internal functions + +-- src/datatype/operators_vecf32.rs:109 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_sphere_l2_in +CREATE OR REPLACE FUNCTION "_vectors_vecf32_sphere_l2_in"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" sphere_vector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_sphere_l2_in_wrapper'; + +-- src/datatype/operators_vecf32.rs:90 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_sphere_dot_in +CREATE OR REPLACE FUNCTION "_vectors_vecf32_sphere_dot_in"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" sphere_vector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_sphere_dot_in_wrapper'; + +-- src/datatype/operators_vecf32.rs:128 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_sphere_cos_in +CREATE OR REPLACE FUNCTION "_vectors_vecf32_sphere_cos_in"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" sphere_vector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_sphere_cos_in_wrapper'; + +-- src/datatype/binary_vecf32.rs:9 +-- vectors::datatype::binary_vecf32::_vectors_vecf32_send +CREATE OR REPLACE FUNCTION "_vectors_vecf32_send"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_send_wrapper'; + +-- src/datatype/binary_vecf32.rs:24 +-- vectors::datatype::binary_vecf32::_vectors_vecf32_recv +CREATE OR REPLACE FUNCTION "_vectors_vecf32_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_recv_wrapper'; + +-- src/datatype/text_vecf32.rs:30 +-- vectors::datatype::text_vecf32::_vectors_vecf32_out +CREATE OR REPLACE FUNCTION "_vectors_vecf32_out"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_out_wrapper'; + +-- src/datatype/operators_vecf32.rs:16 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_sub +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_sub"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_sub_wrapper'; + +-- src/datatype/operators_vecf32.rs:66 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_neq +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_neq"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_neq_wrapper'; + +-- src/datatype/operators_vecf32.rs:26 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_mul +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_mul"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_mul_wrapper'; + +-- src/datatype/operators_vecf32.rs:42 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_lte +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_lte"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_lte_wrapper'; + +-- src/datatype/operators_vecf32.rs:36 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_lt +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_lt"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_lt_wrapper'; + +-- src/datatype/operators_vecf32.rs:78 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_l2 +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_l2"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_l2_wrapper'; + +-- src/datatype/operators_vecf32.rs:54 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_gte +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_gte"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_gte_wrapper'; + +-- src/datatype/operators_vecf32.rs:48 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_gt +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_gt"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_gt_wrapper'; + +-- src/datatype/operators_vecf32.rs:60 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_eq +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_eq"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_eq_wrapper'; + +-- src/datatype/operators_vecf32.rs:72 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_dot +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_dot"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_dot_wrapper'; + +-- src/datatype/operators_vecf32.rs:84 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_cos +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_cos"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_cos_wrapper'; + +-- src/datatype/operators_vecf32.rs:6 +-- vectors::datatype::operators_vecf32::_vectors_vecf32_operator_add +CREATE OR REPLACE FUNCTION "_vectors_vecf32_operator_add"( + "lhs" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "rhs" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_operator_add_wrapper'; + +-- src/datatype/functions_vecf32.rs:15 +-- vectors::datatype::functions_vecf32::_vectors_vecf32_normalize +CREATE OR REPLACE FUNCTION "_vectors_vecf32_normalize"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_normalize_wrapper'; + +-- src/datatype/functions_vecf32.rs:10 +-- vectors::datatype::functions_vecf32::_vectors_vecf32_norm +CREATE OR REPLACE FUNCTION "_vectors_vecf32_norm"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_norm_wrapper'; + +-- src/datatype/text_vecf32.rs:9 +-- vectors::datatype::text_vecf32::_vectors_vecf32_in +CREATE OR REPLACE FUNCTION "_vectors_vecf32_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_in_wrapper'; + +-- src/datatype/functions_vecf32.rs:5 +-- vectors::datatype::functions_vecf32::_vectors_vecf32_dims +CREATE OR REPLACE FUNCTION "_vectors_vecf32_dims"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_dims_wrapper'; + +-- src/datatype/aggregate_vecf32.rs:142 +-- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_sum_finalfunc +CREATE OR REPLACE FUNCTION "_vectors_vecf32_aggregate_sum_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS vector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_aggregate_sum_finalfunc_wrapper'; + +-- src/datatype/aggregate_vecf32.rs:124 +-- vectors::datatype::aggregate_vecf32::_vectors_vecf32_aggregate_avg_finalfunc +CREATE OR REPLACE FUNCTION "_vectors_vecf32_aggregate_avg_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS vector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf32_aggregate_avg_finalfunc_wrapper'; + +-- src/datatype/operators_vecf16.rs:109 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_sphere_l2_in +CREATE OR REPLACE FUNCTION "_vectors_vecf16_sphere_l2_in"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" sphere_vecf16 /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_sphere_l2_in_wrapper'; + +-- src/datatype/operators_vecf16.rs:90 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_sphere_dot_in +CREATE OR REPLACE FUNCTION "_vectors_vecf16_sphere_dot_in"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" sphere_vecf16 /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_sphere_dot_in_wrapper'; + +-- src/datatype/operators_vecf16.rs:128 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_sphere_cos_in +CREATE OR REPLACE FUNCTION "_vectors_vecf16_sphere_cos_in"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" sphere_vecf16 /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_sphere_cos_in_wrapper'; + +-- src/datatype/binary_vecf16.rs:10 +-- vectors::datatype::binary_vecf16::_vectors_vecf16_send +CREATE OR REPLACE FUNCTION "_vectors_vecf16_send"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_send_wrapper'; + +-- src/datatype/binary_vecf16.rs:25 +-- vectors::datatype::binary_vecf16::_vectors_vecf16_recv +CREATE OR REPLACE FUNCTION "_vectors_vecf16_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_recv_wrapper'; + +-- src/datatype/text_vecf16.rs:30 +-- vectors::datatype::text_vecf16::_vectors_vecf16_out +CREATE OR REPLACE FUNCTION "_vectors_vecf16_out"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_out_wrapper'; + +-- src/datatype/operators_vecf16.rs:16 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_sub +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_sub"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_sub_wrapper'; + +-- src/datatype/operators_vecf16.rs:66 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_neq +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_neq"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_neq_wrapper'; + +-- src/datatype/operators_vecf16.rs:26 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_mul +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_mul"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_mul_wrapper'; + +-- src/datatype/operators_vecf16.rs:42 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_lte +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_lte"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_lte_wrapper'; + +-- src/datatype/operators_vecf16.rs:36 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_lt +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_lt"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_lt_wrapper'; + +-- src/datatype/operators_vecf16.rs:78 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_l2 +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_l2"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_l2_wrapper'; + +-- src/datatype/operators_vecf16.rs:54 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_gte +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_gte"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_gte_wrapper'; + +-- src/datatype/operators_vecf16.rs:48 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_gt +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_gt"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_gt_wrapper'; + +-- src/datatype/operators_vecf16.rs:60 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_eq +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_eq"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_eq_wrapper'; + +-- src/datatype/operators_vecf16.rs:72 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_dot +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_dot"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_dot_wrapper'; + +-- src/datatype/operators_vecf16.rs:84 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_cos +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_cos"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_cos_wrapper'; + +-- src/datatype/operators_vecf16.rs:6 +-- vectors::datatype::operators_vecf16::_vectors_vecf16_operator_add +CREATE OR REPLACE FUNCTION "_vectors_vecf16_operator_add"( + "lhs" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "rhs" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_operator_add_wrapper'; + +-- src/datatype/functions_vecf16.rs:15 +-- vectors::datatype::functions_vecf16::_vectors_vecf16_normalize +CREATE OR REPLACE FUNCTION "_vectors_vecf16_normalize"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_normalize_wrapper'; + +-- src/datatype/functions_vecf16.rs:10 +-- vectors::datatype::functions_vecf16::_vectors_vecf16_norm +CREATE OR REPLACE FUNCTION "_vectors_vecf16_norm"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_norm_wrapper'; + +-- src/datatype/text_vecf16.rs:9 +-- vectors::datatype::text_vecf16::_vectors_vecf16_in +CREATE OR REPLACE FUNCTION "_vectors_vecf16_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_in_wrapper'; + +-- src/datatype/functions_vecf16.rs:5 +-- vectors::datatype::functions_vecf16::_vectors_vecf16_dims +CREATE OR REPLACE FUNCTION "_vectors_vecf16_dims"( + "vector" vecf16 /* vectors::datatype::memory_vecf16::Vecf16Input */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_vecf16_dims_wrapper'; + +-- src/datatype/typmod.rs:82 +-- vectors::datatype::typmod::_vectors_typmod_out +CREATE OR REPLACE FUNCTION "_vectors_typmod_out"( + "typmod" INT /* i32 */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_typmod_out_wrapper'; + +-- src/datatype/typmod.rs:46 +-- vectors::datatype::typmod::_vectors_typmod_in_65535 +CREATE OR REPLACE FUNCTION "_vectors_typmod_in_65535"( + "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_typmod_in_65535_wrapper'; + +-- src/datatype/typmod.rs:64 +-- vectors::datatype::typmod::_vectors_typmod_in_1048575 +CREATE OR REPLACE FUNCTION "_vectors_typmod_in_1048575"( + "list" cstring[] /* pgrx::datum::array::Array<&core::ffi::c_str::CStr> */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_typmod_in_1048575_wrapper'; + +-- src/datatype/functions_svecf32.rs:21 +-- vectors::datatype::functions_svecf32::_vectors_to_svector +CREATE OR REPLACE FUNCTION "_vectors_to_svector"( + "dims" INT, /* i32 */ + "index" INT[], /* pgrx::datum::array::Array */ + "value" real[] /* pgrx::datum::array::Array */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_to_svector_wrapper'; + +-- src/embedding/mod.rs:7 +-- vectors::embedding::_vectors_text2vec_openai +CREATE OR REPLACE FUNCTION "_vectors_text2vec_openai"( + "input" TEXT, /* alloc::string::String */ + "model" TEXT /* alloc::string::String */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_text2vec_openai_wrapper'; + +-- src/datatype/operators_svecf32.rs:109 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_sphere_l2_in +CREATE OR REPLACE FUNCTION "_vectors_svecf32_sphere_l2_in"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" sphere_svector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_sphere_l2_in_wrapper'; + +-- src/datatype/operators_svecf32.rs:90 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_sphere_dot_in +CREATE OR REPLACE FUNCTION "_vectors_svecf32_sphere_dot_in"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" sphere_svector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_sphere_dot_in_wrapper'; + +-- src/datatype/operators_svecf32.rs:128 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_sphere_cos_in +CREATE OR REPLACE FUNCTION "_vectors_svecf32_sphere_cos_in"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" sphere_svector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_sphere_cos_in_wrapper'; + +-- src/datatype/binary_svecf32.rs:10 +-- vectors::datatype::binary_svecf32::_vectors_svecf32_send +CREATE OR REPLACE FUNCTION "_vectors_svecf32_send"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_send_wrapper'; + +-- src/datatype/binary_svecf32.rs:29 +-- vectors::datatype::binary_svecf32::_vectors_svecf32_recv +CREATE OR REPLACE FUNCTION "_vectors_svecf32_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_recv_wrapper'; + +-- src/datatype/text_svecf32.rs:77 +-- vectors::datatype::text_svecf32::_vectors_svecf32_out +CREATE OR REPLACE FUNCTION "_vectors_svecf32_out"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_out_wrapper'; + +-- src/datatype/operators_svecf32.rs:16 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_sub +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_sub"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_sub_wrapper'; + +-- src/datatype/operators_svecf32.rs:66 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_neq +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_neq"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_neq_wrapper'; + +-- src/datatype/operators_svecf32.rs:26 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_mul +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_mul"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_mul_wrapper'; + +-- src/datatype/operators_svecf32.rs:42 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_lte +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_lte"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_lte_wrapper'; + +-- src/datatype/operators_svecf32.rs:36 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_lt +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_lt"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_lt_wrapper'; + +-- src/datatype/operators_svecf32.rs:78 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_l2 +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_l2"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_l2_wrapper'; + +-- src/datatype/operators_svecf32.rs:54 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_gte +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_gte"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_gte_wrapper'; + +-- src/datatype/operators_svecf32.rs:48 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_gt +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_gt"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_gt_wrapper'; + +-- src/datatype/operators_svecf32.rs:60 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_eq +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_eq"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_eq_wrapper'; + +-- src/datatype/operators_svecf32.rs:72 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_dot +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_dot"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_dot_wrapper'; + +-- src/datatype/operators_svecf32.rs:84 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_cos +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_cos"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_cos_wrapper'; + +-- src/datatype/operators_svecf32.rs:6 +-- vectors::datatype::operators_svecf32::_vectors_svecf32_operator_add +CREATE OR REPLACE FUNCTION "_vectors_svecf32_operator_add"( + "lhs" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "rhs" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_operator_add_wrapper'; + +-- src/datatype/functions_svecf32.rs:16 +-- vectors::datatype::functions_svecf32::_vectors_svecf32_normalize +CREATE OR REPLACE FUNCTION "_vectors_svecf32_normalize"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_normalize_wrapper'; + +-- src/datatype/functions_svecf32.rs:11 +-- vectors::datatype::functions_svecf32::_vectors_svecf32_norm +CREATE OR REPLACE FUNCTION "_vectors_svecf32_norm"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_norm_wrapper'; + +-- There might be a conflict of `typmod` or `_typmod` +-- If installed directly from 0.3.0, a break happens +-- If updated from 0.2.1 to 0.3.0, update can be continue +DO $$ +DECLARE + func_svecf32_arg_3 TEXT; +BEGIN + SELECT parameter_name INTO func_svecf32_arg_3 + FROM information_schema.routines + LEFT JOIN information_schema.parameters ON routines.specific_name=parameters.specific_name + WHERE routines.specific_schema='vectors' AND routines.routine_name='_vectors_svecf32_in' AND parameters.ordinal_position=3 + ORDER BY routines.routine_name, parameters.ordinal_position; + IF func_svecf32_arg_3 = '_typmod' THEN + -- src/datatype/text_svecf32.rs:10 + -- vectors::datatype::text_svecf32::_vectors_svecf32_in + CREATE OR REPLACE FUNCTION "_vectors_svecf32_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "_typmod" INT /* i32 */ + ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ + IMMUTABLE STRICT PARALLEL SAFE + LANGUAGE c /* Rust */ + AS 'MODULE_PATHNAME', '_vectors_svecf32_in_wrapper'; + ELSE + -- src/datatype/text_svecf32.rs:10 + -- vectors::datatype::text_svecf32::_vectors_svecf32_in + CREATE OR REPLACE FUNCTION "_vectors_svecf32_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ + ) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ + IMMUTABLE STRICT PARALLEL SAFE + LANGUAGE c /* Rust */ + AS 'MODULE_PATHNAME', '_vectors_svecf32_in_wrapper'; + END IF; +END $$; + +-- src/datatype/functions_svecf32.rs:6 +-- vectors::datatype::functions_svecf32::_vectors_svecf32_dims +CREATE OR REPLACE FUNCTION "_vectors_svecf32_dims"( + "vector" svector /* vectors::datatype::memory_svecf32::SVecf32Input */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_dims_wrapper'; + +-- src/datatype/aggregate_svecf32.rs:276 +-- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_sum_finalfunc +CREATE OR REPLACE FUNCTION "_vectors_svecf32_aggregate_sum_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS svector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_aggregate_sum_finalfunc_wrapper'; + +-- src/datatype/aggregate_svecf32.rs:253 +-- vectors::datatype::aggregate_svecf32::_vectors_svecf32_aggregate_avg_finalfunc +CREATE OR REPLACE FUNCTION "_vectors_svecf32_aggregate_avg_finalfunc"( + "state" internal /* pgrx::datum::internal::Internal */ +) RETURNS svector /* core::option::Option */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_svecf32_aggregate_avg_finalfunc_wrapper'; + +-- src/index/functions.rs:7 +-- vectors::index::functions::_vectors_pgvectors_upgrade +CREATE OR REPLACE FUNCTION "_vectors_pgvectors_upgrade"() RETURNS void +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_pgvectors_upgrade_wrapper'; + +-- src/index/views.rs:17 +-- vectors::index::views::_vectors_index_stat +CREATE OR REPLACE FUNCTION "_vectors_index_stat"( + "oid" oid /* pgrx_pg_sys::submodules::oids::Oid */ +) RETURNS vector_index_stat /* pgrx::heap_tuple::PgHeapTuple */ +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_index_stat_wrapper'; + +-- src/index/functions.rs:15 +-- vectors::index::functions::_vectors_fence_vector_index +CREATE OR REPLACE FUNCTION "_vectors_fence_vector_index"( + "oid" oid /* pgrx_pg_sys::submodules::oids::Oid */ +) RETURNS void +STRICT VOLATILE PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_fence_vector_index_wrapper'; + +-- src/datatype/casts.rs:35 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_vecf16 +CREATE OR REPLACE FUNCTION "_vectors_cast_vecf32_to_vecf16"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vecf16 /* vectors::datatype::memory_vecf16::Vecf16Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_vecf16_wrapper'; + +-- src/datatype/casts.rs:55 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_svecf32 +CREATE OR REPLACE FUNCTION "_vectors_cast_vecf32_to_svecf32"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS svector /* vectors::datatype::memory_svecf32::SVecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_svecf32_wrapper'; + +-- src/datatype/casts.rs:89 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_bvector +CREATE OR REPLACE FUNCTION "_vectors_cast_vecf32_to_bvector"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_bvector_wrapper'; + +-- src/datatype/casts.rs:26 +-- vectors::datatype::casts::_vectors_cast_vecf32_to_array +CREATE OR REPLACE FUNCTION "_vectors_cast_vecf32_to_array"( + "vector" vector, /* vectors::datatype::memory_vecf32::Vecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS real[] /* alloc::vec::Vec */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf32_to_array_wrapper'; + +-- src/datatype/casts.rs:45 +-- vectors::datatype::casts::_vectors_cast_vecf16_to_vecf32 +CREATE OR REPLACE FUNCTION "_vectors_cast_vecf16_to_vecf32"( + "vector" vecf16, /* vectors::datatype::memory_vecf16::Vecf16Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_vecf16_to_vecf32_wrapper'; + +-- src/datatype/casts.rs:73 +-- vectors::datatype::casts::_vectors_cast_svecf32_to_vecf32 +CREATE OR REPLACE FUNCTION "_vectors_cast_svecf32_to_vecf32"( + "vector" svector, /* vectors::datatype::memory_svecf32::SVecf32Input */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_svecf32_to_vecf32_wrapper'; + +-- src/datatype/casts.rs:108 +-- vectors::datatype::casts::_vectors_cast_bvector_to_vecf32 +CREATE OR REPLACE FUNCTION "_vectors_cast_bvector_to_vecf32"( + "vector" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "_typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_bvector_to_vecf32_wrapper'; + +-- src/datatype/casts.rs:10 +-- vectors::datatype::casts::_vectors_cast_array_to_vecf32 +CREATE OR REPLACE FUNCTION "_vectors_cast_array_to_vecf32"( + "array" real[], /* pgrx::datum::array::Array */ + "typmod" INT, /* i32 */ + "_explicit" bool /* bool */ +) RETURNS vector /* vectors::datatype::memory_vecf32::Vecf32Output */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_cast_array_to_vecf32_wrapper'; + +-- src/datatype/subscript_bvector.rs:10 +-- vectors::datatype::subscript_bvector::_vectors_bvector_subscript +CREATE OR REPLACE FUNCTION _vectors_bvector_subscript(internal) RETURNS internal +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_bvector_subscript_wrapper'; + +-- src/datatype/operators_bvector.rs:128 +-- vectors::datatype::operators_bvector::_vectors_bvector_sphere_jaccard_in +CREATE OR REPLACE FUNCTION "_vectors_bvector_sphere_jaccard_in"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" sphere_bvector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_sphere_jaccard_in_wrapper'; + +-- src/datatype/operators_bvector.rs:109 +-- vectors::datatype::operators_bvector::_vectors_bvector_sphere_hamming_in +CREATE OR REPLACE FUNCTION "_vectors_bvector_sphere_hamming_in"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" sphere_bvector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_sphere_hamming_in_wrapper'; + +-- src/datatype/operators_bvector.rs:90 +-- vectors::datatype::operators_bvector::_vectors_bvector_sphere_dot_in +CREATE OR REPLACE FUNCTION "_vectors_bvector_sphere_dot_in"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" sphere_bvector /* pgrx::heap_tuple::PgHeapTuple */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_sphere_dot_in_wrapper'; + +-- src/datatype/binary_bvector.rs:10 +-- vectors::datatype::binary_bvector::_vectors_bvector_send +CREATE OR REPLACE FUNCTION "_vectors_bvector_send"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bytea /* vectors::datatype::binary::Bytea */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_send_wrapper'; + +-- src/datatype/binary_bvector.rs:25 +-- vectors::datatype::binary_bvector::_vectors_bvector_recv +CREATE OR REPLACE FUNCTION "_vectors_bvector_recv"( + "internal" internal, /* pgrx::datum::internal::Internal */ + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_recv_wrapper'; + +-- src/datatype/text_bvector.rs:42 +-- vectors::datatype::text_bvector::_vectors_bvector_out +CREATE OR REPLACE FUNCTION "_vectors_bvector_out"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS cstring /* alloc::ffi::c_str::CString */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_out_wrapper'; + +-- src/datatype/operators_bvector.rs:26 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_xor +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_xor"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_xor_wrapper'; + +-- src/datatype/operators_bvector.rs:16 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_or +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_or"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_or_wrapper'; + +-- src/datatype/operators_bvector.rs:66 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_neq +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_neq"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_neq_wrapper'; + +-- src/datatype/operators_bvector.rs:42 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_lte +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_lte"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_lte_wrapper'; + +-- src/datatype/operators_bvector.rs:36 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_lt +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_lt"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_lt_wrapper'; + +-- src/datatype/operators_bvector.rs:84 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_jaccard +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_jaccard"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_jaccard_wrapper'; + +-- src/datatype/operators_bvector.rs:78 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_hamming +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_hamming"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_hamming_wrapper'; + +-- src/datatype/operators_bvector.rs:54 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_gte +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_gte"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_gte_wrapper'; + +-- src/datatype/operators_bvector.rs:48 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_gt +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_gt"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_gt_wrapper'; + +-- src/datatype/operators_bvector.rs:60 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_eq +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_eq"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bool /* bool */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_eq_wrapper'; + +-- src/datatype/operators_bvector.rs:72 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_dot +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_dot"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_dot_wrapper'; + +-- src/datatype/operators_bvector.rs:6 +-- vectors::datatype::operators_bvector::_vectors_bvector_operator_and +CREATE OR REPLACE FUNCTION "_vectors_bvector_operator_and"( + "lhs" bvector, /* vectors::datatype::memory_bvector::BVectorInput */ + "rhs" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_operator_and_wrapper'; + +-- src/datatype/functions_bvector.rs:11 +-- vectors::datatype::functions_bvector::_vectors_bvector_norm +CREATE OR REPLACE FUNCTION "_vectors_bvector_norm"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS real /* f32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_norm_wrapper'; + +-- src/datatype/text_bvector.rs:9 +-- vectors::datatype::text_bvector::_vectors_bvector_in +CREATE OR REPLACE FUNCTION "_vectors_bvector_in"( + "input" cstring, /* &core::ffi::c_str::CStr */ + "_oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "typmod" INT /* i32 */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_in_wrapper'; + +-- src/datatype/functions_bvector.rs:6 +-- vectors::datatype::functions_bvector::_vectors_bvector_dims +CREATE OR REPLACE FUNCTION "_vectors_bvector_dims"( + "vector" bvector /* vectors::datatype::memory_bvector::BVectorInput */ +) RETURNS INT /* i32 */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_bvector_dims_wrapper'; + +-- src/datatype/functions_bvector.rs:16 +-- vectors::datatype::functions_bvector::_vectors_binarize +CREATE OR REPLACE FUNCTION "_vectors_binarize"( + "vector" vector /* vectors::datatype::memory_vecf32::Vecf32Input */ +) RETURNS bvector /* vectors::datatype::memory_bvector::BVectorOutput */ +IMMUTABLE STRICT PARALLEL SAFE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_binarize_wrapper'; + +-- src/index/views.rs:7 +-- vectors::index::views::_vectors_alter_vector_index +CREATE OR REPLACE FUNCTION "_vectors_alter_vector_index"( + "oid" oid, /* pgrx_pg_sys::submodules::oids::Oid */ + "key" TEXT, /* alloc::string::String */ + "value" TEXT /* alloc::string::String */ +) RETURNS void +STRICT VOLATILE +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '_vectors_alter_vector_index_wrapper'; + +-- Drop operator classes + +DROP OPERATOR CLASS vector_l2_ops USING vectors; +DROP OPERATOR CLASS vector_dot_ops USING vectors; +DROP OPERATOR CLASS vector_cos_ops USING vectors; +DROP OPERATOR CLASS vecf16_l2_ops USING vectors; +DROP OPERATOR CLASS vecf16_dot_ops USING vectors; +DROP OPERATOR CLASS vecf16_cos_ops USING vectors; +DROP OPERATOR CLASS svector_l2_ops USING vectors; +DROP OPERATOR CLASS svector_dot_ops USING vectors; +DROP OPERATOR CLASS svector_cos_ops USING vectors; +DROP OPERATOR CLASS bvector_l2_ops USING vectors; +DROP OPERATOR CLASS bvector_dot_ops USING vectors; +DROP OPERATOR CLASS bvector_cos_ops USING vectors; +DROP OPERATOR CLASS bvector_jaccard_ops USING vectors; +DROP OPERATOR CLASS veci8_l2_ops USING vectors; +DROP OPERATOR CLASS veci8_dot_ops USING vectors; +DROP OPERATOR CLASS veci8_cos_ops USING vectors; + +-- Drop operator families + +DROP OPERATOR FAMILY vector_l2_ops USING vectors; +DROP OPERATOR FAMILY vector_dot_ops USING vectors; +DROP OPERATOR FAMILY vector_cos_ops USING vectors; +DROP OPERATOR FAMILY vecf16_l2_ops USING vectors; +DROP OPERATOR FAMILY vecf16_dot_ops USING vectors; +DROP OPERATOR FAMILY vecf16_cos_ops USING vectors; +DROP OPERATOR FAMILY svector_l2_ops USING vectors; +DROP OPERATOR FAMILY svector_dot_ops USING vectors; +DROP OPERATOR FAMILY svector_cos_ops USING vectors; +DROP OPERATOR FAMILY bvector_l2_ops USING vectors; +DROP OPERATOR FAMILY bvector_dot_ops USING vectors; +DROP OPERATOR FAMILY bvector_cos_ops USING vectors; +DROP OPERATOR FAMILY bvector_jaccard_ops USING vectors; +DROP OPERATOR FAMILY veci8_l2_ops USING vectors; +DROP OPERATOR FAMILY veci8_dot_ops USING vectors; +DROP OPERATOR FAMILY veci8_cos_ops USING vectors; + +-- Drop casts + +DROP CAST (veci8 AS vector); +DROP FUNCTION _vectors_cast_veci8_to_vecf32(veci8, integer, boolean); +DROP CAST (vector AS veci8); +DROP FUNCTION _vectors_cast_vecf32_to_veci8(vector, integer, boolean); + +-- Drop functions + +DROP FUNCTION vector_dims(veci8); +DROP FUNCTION _vectors_veci8_dims(veci8); +DROP FUNCTION vector_norm(veci8); +DROP FUNCTION _vectors_veci8_norm(veci8); +DROP FUNCTION to_veci8(int, real, real, int[]); +DROP FUNCTION _vectors_to_veci8(int, real, real, int[]); + +-- Drop operators + +DROP OPERATOR +(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_add; +DROP OPERATOR -(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_minus; +DROP OPERATOR *(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_mul; +DROP OPERATOR =(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_eq; +DROP OPERATOR <>(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_neq; +DROP OPERATOR <(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_lt; +DROP OPERATOR >(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_gt; +DROP OPERATOR <=(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_lte; +DROP OPERATOR >=(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_gte; +DROP OPERATOR <->(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_l2; +DROP OPERATOR <#>(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_dot; +DROP OPERATOR <=>(veci8,veci8); +DROP FUNCTION _vectors_veci8_operator_cosine; +DROP OPERATOR <=>(bvector,bvector); +DROP FUNCTION _vectors_bvecf32_operator_cosine; + +-- Drop types + +DO $$ +DECLARE + depcount_veci8 INT; + depcount_in INT; + depcount_out INT; + depcount_recv INT; + depcount_send INT; +BEGIN + SELECT COUNT(*) INTO depcount_veci8 FROM pg_depend d WHERE d.refobjid = 'vectors.veci8'::regtype; + SELECT COUNT(*) INTO depcount_in FROM pg_depend d WHERE d.refobjid = 'vectors._vectors_veci8_in(cstring,oid,integer)'::regprocedure; + SELECT COUNT(*) INTO depcount_out FROM pg_depend d WHERE d.refobjid = 'vectors._vectors_veci8_out(vectors.veci8)'::regprocedure; + SELECT COUNT(*) INTO depcount_recv FROM pg_depend d WHERE d.refobjid = 'vectors._vectors_veci8_recv(internal,oid,integer)'::regprocedure; + SELECT COUNT(*) INTO depcount_send FROM pg_depend d WHERE d.refobjid = 'vectors._vectors_veci8_send(vectors.veci8)'::regprocedure; + IF depcount_veci8 <> 5 OR depcount_in <> 1 OR depcount_out <> 1 OR depcount_recv <> 1 OR depcount_send <> 1 THEN + RAISE EXCEPTION 'Update fails because you still need type `veci8`.'; + END IF; +END $$; + +DROP TYPE veci8 CASCADE; +-- DROP FUNCTION _vectors_veci8_in; +-- DROP FUNCTION _vectors_veci8_out; +-- DROP FUNCTION _vectors_veci8_recv; +-- DROP FUNCTION _vectors_veci8_send; +DROP FUNCTION _vectors_veci8_subscript; + +-- List of data types + +CREATE TYPE sphere_vector AS ( + center vector, + radius REAL +); + +CREATE TYPE sphere_vecf16 AS ( + center vecf16, + radius REAL +); + +CREATE TYPE sphere_svector AS ( + center svector, + radius REAL +); + +CREATE TYPE sphere_bvector AS ( + center bvector, + radius REAL +); + +-- List of operators + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_vecf32_sphere_l2_in, + LEFTARG = vector, + RIGHTARG = sphere_vector, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_vecf16_sphere_l2_in, + LEFTARG = vecf16, + RIGHTARG = sphere_vecf16, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_svecf32_sphere_l2_in, + LEFTARG = svector, + RIGHTARG = sphere_svector, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<->> ( + PROCEDURE = _vectors_bvector_sphere_hamming_in, + LEFTARG = bvector, + RIGHTARG = sphere_bvector, + COMMUTATOR = <<->> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_vecf32_sphere_dot_in, + LEFTARG = vector, + RIGHTARG = sphere_vector, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_vecf16_sphere_dot_in, + LEFTARG = vecf16, + RIGHTARG = sphere_vecf16, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_svecf32_sphere_dot_in, + LEFTARG = svector, + RIGHTARG = sphere_svector, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<#>> ( + PROCEDURE = _vectors_bvector_sphere_dot_in, + LEFTARG = bvector, + RIGHTARG = sphere_bvector, + COMMUTATOR = <<#>> +); + +CREATE OPERATOR <<=>> ( + PROCEDURE = _vectors_vecf32_sphere_cos_in, + LEFTARG = vector, + RIGHTARG = sphere_vector, + COMMUTATOR = <<=>> +); + +CREATE OPERATOR <<=>> ( + PROCEDURE = _vectors_vecf16_sphere_cos_in, + LEFTARG = vecf16, + RIGHTARG = sphere_vecf16, + COMMUTATOR = <<=>> +); + +CREATE OPERATOR <<=>> ( + PROCEDURE = _vectors_svecf32_sphere_cos_in, + LEFTARG = svector, + RIGHTARG = sphere_svector, + COMMUTATOR = <<=>> +); + +CREATE OPERATOR <<~>> ( + PROCEDURE = _vectors_bvector_sphere_jaccard_in, + LEFTARG = bvector, + RIGHTARG = sphere_bvector, + COMMUTATOR = <<~>> +); + +-- List of functions + +CREATE OR REPLACE FUNCTION alter_vector_index("index" OID, "key" TEXT, "value" TEXT) RETURNS void +STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_alter_vector_index_wrapper'; + +CREATE FUNCTION fence_vector_index(oid) RETURNS void +STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_fence_vector_index_wrapper'; + +CREATE OR REPLACE FUNCTION vector_dims(vector) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_dims_wrapper'; + +CREATE OR REPLACE FUNCTION vector_dims(vecf16) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16_dims_wrapper'; + +CREATE OR REPLACE FUNCTION vector_dims(svector) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_dims_wrapper'; + +CREATE OR REPLACE FUNCTION vector_dims(bvector) RETURNS INT +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_bvector_dims_wrapper'; + +CREATE OR REPLACE FUNCTION vector_norm(vector) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_norm_wrapper'; + +CREATE OR REPLACE FUNCTION vector_norm(vecf16) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16_norm_wrapper'; + +CREATE OR REPLACE FUNCTION vector_norm(svector) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_norm_wrapper'; + +CREATE OR REPLACE FUNCTION vector_norm(bvector) RETURNS real +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_bvector_norm_wrapper'; + +CREATE FUNCTION vector_normalize(vector) RETURNS vector +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf32_normalize_wrapper'; + +CREATE FUNCTION vector_normalize(vecf16) RETURNS vecf16 +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_vecf16_normalize_wrapper'; + +CREATE FUNCTION vector_normalize(svector) RETURNS svector +IMMUTABLE STRICT PARALLEL SAFE LANGUAGE c AS 'MODULE_PATHNAME', '_vectors_svecf32_normalize_wrapper'; + +CREATE FUNCTION sphere(vector, real) RETURNS sphere_vector +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +CREATE FUNCTION sphere(vecf16, real) RETURNS sphere_vecf16 +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +CREATE FUNCTION sphere(svector, real) RETURNS sphere_svector +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +CREATE FUNCTION sphere(bvector, real) RETURNS sphere_bvector +IMMUTABLE PARALLEL SAFE LANGUAGE sql AS 'SELECT ROW($1, $2)'; + +-- List of operator families + +CREATE OPERATOR FAMILY vector_l2_ops USING vectors; + +CREATE OPERATOR FAMILY vector_dot_ops USING vectors; + +CREATE OPERATOR FAMILY vector_cos_ops USING vectors; + +CREATE OPERATOR FAMILY vecf16_l2_ops USING vectors; + +CREATE OPERATOR FAMILY vecf16_dot_ops USING vectors; + +CREATE OPERATOR FAMILY vecf16_cos_ops USING vectors; + +CREATE OPERATOR FAMILY svector_l2_ops USING vectors; + +CREATE OPERATOR FAMILY svector_dot_ops USING vectors; + +CREATE OPERATOR FAMILY svector_cos_ops USING vectors; + +CREATE OPERATOR FAMILY bvector_hamming_ops USING vectors; + +CREATE OPERATOR FAMILY bvector_dot_ops USING vectors; + +CREATE OPERATOR FAMILY bvector_jaccard_ops USING vectors; + +-- List of operator classes + +CREATE OPERATOR CLASS vector_l2_ops + FOR TYPE vector USING vectors FAMILY vector_l2_ops AS + OPERATOR 1 <-> (vector, vector) FOR ORDER BY float_ops, + OPERATOR 2 <<->> (vector, sphere_vector) FOR SEARCH; + +CREATE OPERATOR CLASS vector_dot_ops + FOR TYPE vector USING vectors FAMILY vector_dot_ops AS + OPERATOR 1 <#> (vector, vector) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (vector, sphere_vector) FOR SEARCH; + +CREATE OPERATOR CLASS vector_cos_ops + FOR TYPE vector USING vectors FAMILY vector_cos_ops AS + OPERATOR 1 <=> (vector, vector) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (vector, sphere_vector) FOR SEARCH; + +CREATE OPERATOR CLASS vecf16_l2_ops + FOR TYPE vecf16 USING vectors FAMILY vecf16_l2_ops AS + OPERATOR 1 <-> (vecf16, vecf16) FOR ORDER BY float_ops, + OPERATOR 2 <<->> (vecf16, sphere_vecf16) FOR SEARCH; + +CREATE OPERATOR CLASS vecf16_dot_ops + FOR TYPE vecf16 USING vectors FAMILY vecf16_dot_ops AS + OPERATOR 1 <#> (vecf16, vecf16) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (vecf16, sphere_vecf16) FOR SEARCH; + +CREATE OPERATOR CLASS vecf16_cos_ops + FOR TYPE vecf16 USING vectors FAMILY vecf16_cos_ops AS + OPERATOR 1 <=> (vecf16, vecf16) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (vecf16, sphere_vecf16) FOR SEARCH; + +CREATE OPERATOR CLASS svector_l2_ops + FOR TYPE svector USING vectors FAMILY svector_l2_ops AS + OPERATOR 1 <-> (svector, svector) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (svector, sphere_svector) FOR SEARCH; + +CREATE OPERATOR CLASS svector_dot_ops + FOR TYPE svector USING vectors FAMILY svector_dot_ops AS + OPERATOR 1 <#> (svector, svector) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (svector, sphere_svector) FOR SEARCH; + +CREATE OPERATOR CLASS svector_cos_ops + FOR TYPE svector USING vectors FAMILY svector_cos_ops AS + OPERATOR 1 <=> (svector, svector) FOR ORDER BY float_ops, + OPERATOR 2 <<=>> (svector, sphere_svector) FOR SEARCH; + +CREATE OPERATOR CLASS bvector_hamming_ops + FOR TYPE bvector USING vectors FAMILY bvector_hamming_ops AS + OPERATOR 1 <-> (bvector, bvector) FOR ORDER BY float_ops, + OPERATOR 2 <<->> (bvector, sphere_bvector) FOR SEARCH; + +CREATE OPERATOR CLASS bvector_dot_ops + FOR TYPE bvector USING vectors FAMILY bvector_dot_ops AS + OPERATOR 1 <#> (bvector, bvector) FOR ORDER BY float_ops, + OPERATOR 2 <<#>> (bvector, sphere_bvector) FOR SEARCH; + +CREATE OPERATOR CLASS bvector_jaccard_ops + FOR TYPE bvector USING vectors FAMILY bvector_jaccard_ops AS + OPERATOR 1 <~> (bvector, bvector) FOR ORDER BY float_ops, + OPERATOR 2 <<~>> (bvector, sphere_bvector) FOR SEARCH; diff --git a/src/datatype/text_svecf32.rs b/src/datatype/text_svecf32.rs index 1cb7e2f83..0eacdfced 100644 --- a/src/datatype/text_svecf32.rs +++ b/src/datatype/text_svecf32.rs @@ -8,8 +8,9 @@ use std::ffi::{CStr, CString}; use std::fmt::Write; #[pgrx::pg_extern(immutable, strict, parallel_safe)] -fn _vectors_svecf32_in(input: &CStr, _oid: Oid, _typmod: i32) -> SVecf32Output { +fn _vectors_svecf32_in(input: &CStr, _oid: Oid, typmod: i32) -> SVecf32Output { use crate::utils::parse::parse_pgvector_svector; + let _ = typmod; let v = parse_pgvector_svector(input.to_bytes(), |s| s.parse::().ok()); match v { Err(e) => { diff --git a/src/upgrade/symbols.rs b/src/upgrade/symbols.rs index ab7411da4..e64da3552 100644 --- a/src/upgrade/symbols.rs +++ b/src/upgrade/symbols.rs @@ -33,26 +33,55 @@ symbol!(_vectors_ai_embedding_vector); symbol!(_vectors_typmod_in); // 0.3.0--0.4.0 -symbol!(_vectors_veci8_subscript); -symbol!(_vectors_veci8_send); -symbol!(_vectors_veci8_recv); -symbol!(_vectors_veci8_out); -symbol!(_vectors_veci8_operator_neq); -symbol!(_vectors_veci8_operator_mul); -symbol!(_vectors_veci8_operator_minus); -symbol!(_vectors_veci8_operator_lte); -symbol!(_vectors_veci8_operator_lt); -symbol!(_vectors_veci8_operator_l2); -symbol!(_vectors_veci8_operator_gte); -symbol!(_vectors_veci8_operator_gt); -symbol!(_vectors_veci8_operator_eq); -symbol!(_vectors_veci8_operator_dot); -symbol!(_vectors_veci8_operator_cosine); -symbol!(_vectors_veci8_operator_add); -symbol!(_vectors_veci8_normalize); -symbol!(_vectors_veci8_norm); -symbol!(_vectors_veci8_in); -symbol!(_vectors_veci8_dims); -symbol!(_vectors_to_veci8); -symbol!(_vectors_cast_veci8_to_vecf32); +symbol!(_vectors_bvecf32_dims); +symbol!(_vectors_bvecf32_in); +symbol!(_vectors_bvecf32_norm); +symbol!(_vectors_bvecf32_operator_and); +symbol!(_vectors_bvecf32_operator_cosine); +symbol!(_vectors_bvecf32_operator_dot); +symbol!(_vectors_bvecf32_operator_eq); +symbol!(_vectors_bvecf32_operator_gt); +symbol!(_vectors_bvecf32_operator_gte); +symbol!(_vectors_bvecf32_operator_jaccard); +symbol!(_vectors_bvecf32_operator_l2); +symbol!(_vectors_bvecf32_operator_lt); +symbol!(_vectors_bvecf32_operator_lte); +symbol!(_vectors_bvecf32_operator_neq); +symbol!(_vectors_bvecf32_operator_or); +symbol!(_vectors_bvecf32_operator_xor); +symbol!(_vectors_bvecf32_out); +symbol!(_vectors_bvecf32_recv); +symbol!(_vectors_bvecf32_send); +symbol!(_vectors_bvecf32_subscript); +symbol!(_vectors_cast_bvecf32_to_vecf32); +symbol!(_vectors_cast_vecf32_to_bvecf32); symbol!(_vectors_cast_vecf32_to_veci8); +symbol!(_vectors_cast_veci8_to_vecf32); +symbol!(_vectors_svecf32_div); +symbol!(_vectors_svecf32_operator_cosine); +symbol!(_vectors_svecf32_operator_minus); +symbol!(_vectors_to_veci8); +symbol!(_vectors_vecf16_operator_cosine); +symbol!(_vectors_vecf16_operator_minus); +symbol!(_vectors_vecf32_operator_cosine); +symbol!(_vectors_vecf32_operator_minus); +symbol!(_vectors_veci8_dims); +symbol!(_vectors_veci8_in); +symbol!(_vectors_veci8_norm); +symbol!(_vectors_veci8_normalize); +symbol!(_vectors_veci8_operator_add); +symbol!(_vectors_veci8_operator_cosine); +symbol!(_vectors_veci8_operator_dot); +symbol!(_vectors_veci8_operator_eq); +symbol!(_vectors_veci8_operator_gt); +symbol!(_vectors_veci8_operator_gte); +symbol!(_vectors_veci8_operator_l2); +symbol!(_vectors_veci8_operator_lt); +symbol!(_vectors_veci8_operator_lte); +symbol!(_vectors_veci8_operator_minus); +symbol!(_vectors_veci8_operator_mul); +symbol!(_vectors_veci8_operator_neq); +symbol!(_vectors_veci8_out); +symbol!(_vectors_veci8_recv); +symbol!(_vectors_veci8_send); +symbol!(_vectors_veci8_subscript);