vectorscale

vectorscale

pgvectorscale : Advanced indexing for vector data with DiskANN

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
1820
vectorscale
pgvectorscale
0.8.0
RAG
PostgreSQL
Rust
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d--
No
Yes
No
Yes
no
no
Relationships
Requires
vector
See Also
vchord
vectorize
pg_summarize
pg_tiktoken
pg4ml
pgml
vchord_bm25
pg_similarity

not an official release tag

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXT
PIGSTY
0.8.0
18
17
16
15
14
13
pgvectorscale-
RPM
PIGSTY
0.8.0
18
17
16
15
14
13
pgvectorscale_$vpgvector_$v
DEB
PIGSTY
0.8.0
18
17
16
15
14
13
postgresql-$v-pgvectorscalepostgresql-$v-pgvector
Linux / PGPG18PG17PG16PG15PG14PG13
el8.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el8.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el9.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el9.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el10.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
el10.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
d12.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
d12.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
d13.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
d13.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
u22.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
u22.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
u24.x86_64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
u24.aarch64
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PIGSTY 0.8.0
PackageVersionOSORGSIZEFile URL
pgvectorscale_180.8.0el8.x86_64pigsty503.9 KiBpgvectorscale_18-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_180.8.0el8.aarch64pigsty371.4 KiBpgvectorscale_18-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_180.8.0el9.x86_64pigsty520.6 KiBpgvectorscale_18-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_180.8.0el9.aarch64pigsty395.9 KiBpgvectorscale_18-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_180.8.0el10.x86_64pigsty521.1 KiBpgvectorscale_18-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_180.8.0el10.aarch64pigsty395.7 KiBpgvectorscale_18-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-18-pgvectorscale0.8.0d12.x86_64pigsty2.0 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-18-pgvectorscale0.8.0d12.aarch64pigsty2.0 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-18-pgvectorscale0.8.0d13.x86_64pigsty2.0 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-18-pgvectorscale0.8.0d13.aarch64pigsty2.0 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-18-pgvectorscale0.8.0u22.x86_64pigsty1.9 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-18-pgvectorscale0.8.0u22.aarch64pigsty1.9 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-18-pgvectorscale0.8.0u24.x86_64pigsty1.9 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-18-pgvectorscale0.8.0u24.aarch64pigsty1.9 KiBpostgresql-18-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_170.8.0el8.x86_64pigsty504.1 KiBpgvectorscale_17-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_170.8.0el8.aarch64pigsty371.4 KiBpgvectorscale_17-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_170.8.0el9.x86_64pigsty520.6 KiBpgvectorscale_17-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_170.8.0el9.aarch64pigsty395.4 KiBpgvectorscale_17-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_170.8.0el10.x86_64pigsty520.4 KiBpgvectorscale_17-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_170.8.0el10.aarch64pigsty395.7 KiBpgvectorscale_17-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-17-pgvectorscale0.8.0d12.x86_64pigsty413.9 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-17-pgvectorscale0.8.0d12.aarch64pigsty286.2 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-17-pgvectorscale0.8.0d13.x86_64pigsty414.2 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-17-pgvectorscale0.8.0d13.aarch64pigsty286.2 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-17-pgvectorscale0.8.0u22.x86_64pigsty463.2 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-17-pgvectorscale0.8.0u22.aarch64pigsty336.7 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-17-pgvectorscale0.8.0u24.x86_64pigsty459.0 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-17-pgvectorscale0.8.0u24.aarch64pigsty332.4 KiBpostgresql-17-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_160.8.0el8.x86_64pigsty504.1 KiBpgvectorscale_16-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_160.8.0el8.aarch64pigsty371.2 KiBpgvectorscale_16-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_160.8.0el9.x86_64pigsty520.9 KiBpgvectorscale_16-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_160.8.0el9.aarch64pigsty395.6 KiBpgvectorscale_16-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_160.8.0el10.x86_64pigsty521.0 KiBpgvectorscale_16-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_160.8.0el10.aarch64pigsty395.4 KiBpgvectorscale_16-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-16-pgvectorscale0.8.0d12.x86_64pigsty414.3 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-16-pgvectorscale0.8.0d12.aarch64pigsty286.0 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-16-pgvectorscale0.8.0d13.x86_64pigsty413.4 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-16-pgvectorscale0.8.0d13.aarch64pigsty286.3 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-16-pgvectorscale0.8.0u22.x86_64pigsty462.9 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-16-pgvectorscale0.8.0u22.aarch64pigsty336.9 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-16-pgvectorscale0.8.0u24.x86_64pigsty458.8 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-16-pgvectorscale0.8.0u24.aarch64pigsty332.2 KiBpostgresql-16-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_150.8.0el8.x86_64pigsty503.9 KiBpgvectorscale_15-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_150.8.0el8.aarch64pigsty371.2 KiBpgvectorscale_15-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_150.8.0el9.x86_64pigsty520.4 KiBpgvectorscale_15-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_150.8.0el9.aarch64pigsty395.6 KiBpgvectorscale_15-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_150.8.0el10.x86_64pigsty520.4 KiBpgvectorscale_15-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_150.8.0el10.aarch64pigsty395.6 KiBpgvectorscale_15-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-15-pgvectorscale0.8.0d12.x86_64pigsty414.1 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-15-pgvectorscale0.8.0d12.aarch64pigsty285.9 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-15-pgvectorscale0.8.0d13.x86_64pigsty413.0 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-15-pgvectorscale0.8.0d13.aarch64pigsty286.3 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-15-pgvectorscale0.8.0u22.x86_64pigsty463.0 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-15-pgvectorscale0.8.0u22.aarch64pigsty336.8 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-15-pgvectorscale0.8.0u24.x86_64pigsty458.5 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-15-pgvectorscale0.8.0u24.aarch64pigsty332.3 KiBpostgresql-15-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_140.8.0el8.x86_64pigsty503.8 KiBpgvectorscale_14-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_140.8.0el8.aarch64pigsty370.8 KiBpgvectorscale_14-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_140.8.0el9.x86_64pigsty519.5 KiBpgvectorscale_14-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_140.8.0el9.aarch64pigsty395.1 KiBpgvectorscale_14-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_140.8.0el10.x86_64pigsty520.0 KiBpgvectorscale_14-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_140.8.0el10.aarch64pigsty394.8 KiBpgvectorscale_14-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-14-pgvectorscale0.8.0d12.x86_64pigsty413.2 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-14-pgvectorscale0.8.0d12.aarch64pigsty285.9 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-14-pgvectorscale0.8.0d13.x86_64pigsty412.6 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-14-pgvectorscale0.8.0d13.aarch64pigsty285.9 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-14-pgvectorscale0.8.0u22.x86_64pigsty462.0 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-14-pgvectorscale0.8.0u22.aarch64pigsty336.3 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-14-pgvectorscale0.8.0u24.x86_64pigsty457.3 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-14-pgvectorscale0.8.0u24.aarch64pigsty331.7 KiBpostgresql-14-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
PackageVersionOSORGSIZEFile URL
pgvectorscale_130.8.0el8.x86_64pigsty504.4 KiBpgvectorscale_13-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_130.8.0el8.aarch64pigsty370.9 KiBpgvectorscale_13-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_130.8.0el9.x86_64pigsty520.3 KiBpgvectorscale_13-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_130.8.0el9.aarch64pigsty395.4 KiBpgvectorscale_13-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_130.8.0el10.x86_64pigsty520.3 KiBpgvectorscale_13-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_130.8.0el10.aarch64pigsty394.9 KiBpgvectorscale_13-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-13-pgvectorscale0.8.0d12.x86_64pigsty413.6 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-13-pgvectorscale0.8.0d12.aarch64pigsty286.1 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-13-pgvectorscale0.8.0d13.x86_64pigsty413.4 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-13-pgvectorscale0.8.0d13.aarch64pigsty285.8 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-13-pgvectorscale0.8.0u22.x86_64pigsty462.7 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-13-pgvectorscale0.8.0u22.aarch64pigsty336.4 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-13-pgvectorscale0.8.0u24.x86_64pigsty458.7 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-13-pgvectorscale0.8.0u24.aarch64pigsty332.4 KiBpostgresql-13-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb

Source

pig build pkg pgvectorscale;		# build rpm / deb with pig

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgdg pigsty -u   # add both repo and update cache

Install this extension with pig:

pig install pgvectorscale;		# install via package name, for the active PG version
pig install vectorscale;		# install by extension name, for the current active PG version

pig install vectorscale -v 18;   # install for PG 18
pig install vectorscale -v 17;   # install for PG 17
pig install vectorscale -v 16;   # install for PG 16
pig install vectorscale -v 15;   # install for PG 15
pig install vectorscale -v 14;   # install for PG 14
pig install vectorscale -v 13;   # install for PG 13

Create this extension with:

CREATE EXTENSION vectorscale CASCADE; -- requires vector

Usage

CREATE EXTENSION vectorscale CASCADE;

CREATE TABLE IF NOT EXISTS document_embedding  (
    id BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
    metadata JSONB,
    contents TEXT,
    embedding VECTOR(1536)
);
  
CREATE INDEX document_embedding_idx ON document_embedding
USING diskann (embedding);

SELECT *
FROM document_embedding
ORDER BY embedding <=> $1
LIMIT 10

This fdw is read-only for now.

Last updated on