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 comparsion
=vecf16vecf16booleandictionary order comparsion
<>vectorvectorbooleandictionary order comparsion
<>vecf16vecf16booleandictionary order comparsion
<vectorvectorbooleandictionary order comparsion
<vecf16vecf16booleandictionary order comparsion
>vectorvectorbooleandictionary order comparsion
>vecf16vecf16booleandictionary order comparsion
<=vectorvectorbooleandictionary order comparsion
<=vecf16vecf16booleandictionary order comparsion
>=vectorvectorbooleandictionary order comparsion
>=vecf16vecf16booleandictionary order comparsion
<->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 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.