Reverted change to extended storage for now (causes high memory during distance calculation in BuildCallback)

This commit is contained in:
Andrew Kane
2023-01-09 17:23:45 -08:00
parent e2b103a343
commit 4a2f20f5fc
3 changed files with 1 additions and 6 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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