Skip to content

Schema

Here is the schema provided by pgvecto.rs.

List of data types

NameDescription
vectorvector, scalar type of which is “binary32” defined in IEEE 754-2008
vecf16vector, scalar type of which is “binary16” defined in IEEE 754-2008
vector_index_stata composite type representing vector index statistics

List of operators

NameLeft arg typeRight arg typeResult typeDescription
+vectorvectorvectorelement-wise arithmetic
+vecf16vecf16vecf16element-wise arithmetic
-vectorvectorvectorelement-wise arithmetic
-vecf16vecf16vecf16element-wise arithmetic
=vectorvectorbooleandictionary order comparison
=vecf16vecf16booleandictionary order comparison
<>vectorvectorbooleandictionary order comparison
<>vecf16vecf16booleandictionary order comparison
<vectorvectorbooleandictionary order comparison
<vecf16vecf16booleandictionary order comparison
>vectorvectorbooleandictionary order comparison
>vecf16vecf16booleandictionary order comparison
<=vectorvectorbooleandictionary order comparison
<=vecf16vecf16booleandictionary order comparison
>=vectorvectorbooleandictionary order comparison
>=vecf16vecf16booleandictionary order comparison
<->vectorvectorrealsquared Euclidean distance
<->vecf16vecf16realsquared Euclidean distance
<#>vectorvectorrealnegative dot product
<#>vecf16vecf16realnegative dot product
<=>vectorvectorrealcosine distance
<=>vecf16vecf16realcosine distance

List of functions

List of casts

Source typeTarget typeImplicit?
real[]vectoryes
vectorreal[]yes
vectorvecf16no

List of access methods

NameTypeDescription
vectorsIndexpgvecto.rs vector index

List of operator families

AMOperator familyApplicable types
vectorsvector_cos_opsvector
vectorsvector_dot_opsvector
vectorsvector_l2_opsvector
vectorsvecf16_cos_opsvecf16
vectorsvecf16_dot_opsvecf16
vectorsvecf16_l2_opsvecf16

List of operator classes

AMInput typeOperator classDefault?
vectorsvectorvector_l2_opsno
vectorsvectorvector_dot_opsno
vectorsvectorvector_cos_opsno
vectorsvecf16vecf16_l2_opsno
vectorsvecf16vecf16_dot_opsno
vectorsvecf16vecf16_cos_opsno

List of views

NameDescription
pg_vector_index_statA view provided for vector index statistics