mirror of
https://github.com/pgvector/pgvector.git
synced 2026-10-23 10:48:54 +03:00
8 lines
373 B
SQL
8 lines
373 B
SQL
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
\echo Use "ALTER EXTENSION vector UPDATE TO '0.9.0'" to load this file. \quit
|
|
|
|
CREATE FUNCTION vector_dims(sparsevec) RETURNS integer
|
|
AS 'MODULE_PATHNAME', 'sparsevec_vector_dims' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
|
|
|
COMMENT ON FUNCTION vector_dims(sparsevec) IS 'number of dimensions';
|