mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 07:06:57 +08:00
Reverted change to extended storage for now (causes high memory during distance calculation in BuildCallback)
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
## 0.4.0 (unreleased)
|
## 0.4.0 (unreleased)
|
||||||
|
|
||||||
- Changed text representation for vector elements to match `real`
|
- Changed text representation for vector elements to match `real`
|
||||||
- Changed storage for vector from `plain` to `extended` for new installations
|
|
||||||
- Improved accuracy of text parsing for certain inputs
|
- Improved accuracy of text parsing for certain inputs
|
||||||
- Added `avg` aggregate for vector
|
- Added `avg` aggregate for vector
|
||||||
- Added experimental support for Windows
|
- Added experimental support for Windows
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
||||||
\echo Use "ALTER EXTENSION vector UPDATE TO '0.4.0'" to load this file. \quit
|
\echo Use "ALTER EXTENSION vector UPDATE TO '0.4.0'" to load this file. \quit
|
||||||
|
|
||||||
-- requires Postgres 13+
|
|
||||||
-- ALTER TYPE vector SET (STORAGE = extended);
|
|
||||||
|
|
||||||
CREATE FUNCTION vector_accum(double precision[], vector) RETURNS double precision[]
|
CREATE FUNCTION vector_accum(double precision[], vector) RETURNS double precision[]
|
||||||
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ CREATE TYPE vector (
|
|||||||
OUTPUT = vector_out,
|
OUTPUT = vector_out,
|
||||||
TYPMOD_IN = vector_typmod_in,
|
TYPMOD_IN = vector_typmod_in,
|
||||||
RECEIVE = vector_recv,
|
RECEIVE = vector_recv,
|
||||||
SEND = vector_send,
|
SEND = vector_send
|
||||||
STORAGE = extended
|
|
||||||
);
|
);
|
||||||
|
|
||||||
-- functions
|
-- functions
|
||||||
|
|||||||
Reference in New Issue
Block a user