mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-06 14:01:31 +08:00
9 lines
396 B
SQL
9 lines
396 B
SQL
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
\echo Use "ALTER EXTENSION vector UPDATE TO '0.1.8'" to load this file. \quit
|
|
|
|
CREATE FUNCTION vector_to_float4(vector, integer, boolean) RETURNS real[]
|
|
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
|
|
|
CREATE CAST (vector AS real[])
|
|
WITH FUNCTION vector_to_float4(vector, integer, boolean) AS IMPLICIT;
|