mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 08:36:54 +08:00
Changed storage for existing installations [skip ci]
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
## 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
|
- Changed storage for vector from `plain` to `extended`
|
||||||
- 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,8 +1,8 @@
|
|||||||
-- 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+
|
-- comment out this single line for Postgres < 13
|
||||||
-- ALTER TYPE vector SET (STORAGE = extended);
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user