Changed storage for existing installations [skip ci]

This commit is contained in:
Andrew Kane
2023-01-10 11:34:43 -08:00
parent d164fd35a8
commit 42d0cf1a25
2 changed files with 3 additions and 3 deletions

View File

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

View File

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