forked from pgvector/pgvector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add update path to 0.8.0-lanterncloud version, fixes for pg17
- Loading branch information
Showing
6 changed files
with
1,012 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
\echo Use "ALTER EXTENSION vector UPDATE TO '0.8.0-lanterncloud'" to load this file. \quit | ||
|
||
DROP CAST IF EXISTS (integer[] AS sparsevec); | ||
DROP CAST IF EXISTS (real[] AS sparsevec); | ||
DROP CAST IF EXISTS (double precision[] AS sparsevec); | ||
DROP CAST IF EXISTS (numeric[] AS sparsevec); | ||
DROP FUNCTION IF EXISTS array_to_sparsevec(integer[], integer, boolean); | ||
DROP FUNCTION IF EXISTS array_to_sparsevec(real[], integer, boolean); | ||
DROP FUNCTION IF EXISTS array_to_sparsevec(double precision[], integer, boolean); | ||
DROP FUNCTION IF EXISTS array_to_sparsevec(numeric[], integer, boolean); | ||
|
||
CREATE FUNCTION array_to_sparsevec(integer[], integer, boolean) RETURNS sparsevec | ||
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; | ||
|
||
CREATE FUNCTION array_to_sparsevec(real[], integer, boolean) RETURNS sparsevec | ||
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; | ||
|
||
CREATE FUNCTION array_to_sparsevec(double precision[], integer, boolean) RETURNS sparsevec | ||
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; | ||
|
||
CREATE FUNCTION array_to_sparsevec(numeric[], integer, boolean) RETURNS sparsevec | ||
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE; | ||
|
||
CREATE CAST (integer[] AS sparsevec) | ||
WITH FUNCTION array_to_sparsevec(integer[], integer, boolean) AS ASSIGNMENT; | ||
|
||
CREATE CAST (real[] AS sparsevec) | ||
WITH FUNCTION array_to_sparsevec(real[], integer, boolean) AS ASSIGNMENT; | ||
|
||
CREATE CAST (double precision[] AS sparsevec) | ||
WITH FUNCTION array_to_sparsevec(double precision[], integer, boolean) AS ASSIGNMENT; | ||
|
||
CREATE CAST (numeric[] AS sparsevec) | ||
WITH FUNCTION array_to_sparsevec(numeric[], integer, boolean) AS ASSIGNMENT; |
Oops, something went wrong.