vectorscale

vectorscale

pgvectorscale : Advanced indexing for vector data with DiskANN

Overview

ID Extension Package Version Category License Language
1820
vectorscale
pgvectorscale
0.8.0
RAG
PostgreSQL
Rust
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--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

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT
PIGSTY
0.8.0
18
17
16
15
14
13
pgvectorscale -
RPM
PIGSTY
0.8.0
18
17
16
15
14
13
pgvectorscale_$v pgvector_$v
DEB
PIGSTY
0.8.0
18
17
16
15
14
13
postgresql-$v-pgvectorscale postgresql-$v-pgvector
Linux / PG PG18 PG17 PG16 PG15 PG14 PG13
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
Package Version OS ORG SIZE File URL
pgvectorscale_18 0.8.0 el8.x86_64 pigsty 503.9 KiB pgvectorscale_18-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_18 0.8.0 el8.aarch64 pigsty 371.4 KiB pgvectorscale_18-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_18 0.8.0 el9.x86_64 pigsty 520.6 KiB pgvectorscale_18-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_18 0.8.0 el9.aarch64 pigsty 395.9 KiB pgvectorscale_18-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_18 0.8.0 el10.x86_64 pigsty 521.1 KiB pgvectorscale_18-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_18 0.8.0 el10.aarch64 pigsty 395.7 KiB pgvectorscale_18-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-18-pgvectorscale 0.8.0 d12.x86_64 pigsty 2.0 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-18-pgvectorscale 0.8.0 d12.aarch64 pigsty 2.0 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-18-pgvectorscale 0.8.0 d13.x86_64 pigsty 2.0 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-18-pgvectorscale 0.8.0 d13.aarch64 pigsty 2.0 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-18-pgvectorscale 0.8.0 u22.x86_64 pigsty 1.9 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-18-pgvectorscale 0.8.0 u22.aarch64 pigsty 1.9 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-18-pgvectorscale 0.8.0 u24.x86_64 pigsty 1.9 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-18-pgvectorscale 0.8.0 u24.aarch64 pigsty 1.9 KiB postgresql-18-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_17 0.8.0 el8.x86_64 pigsty 504.1 KiB pgvectorscale_17-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_17 0.8.0 el8.aarch64 pigsty 371.4 KiB pgvectorscale_17-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_17 0.8.0 el9.x86_64 pigsty 520.6 KiB pgvectorscale_17-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_17 0.8.0 el9.aarch64 pigsty 395.4 KiB pgvectorscale_17-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_17 0.8.0 el10.x86_64 pigsty 520.4 KiB pgvectorscale_17-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_17 0.8.0 el10.aarch64 pigsty 395.7 KiB pgvectorscale_17-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-17-pgvectorscale 0.8.0 d12.x86_64 pigsty 413.9 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-17-pgvectorscale 0.8.0 d12.aarch64 pigsty 286.2 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-17-pgvectorscale 0.8.0 d13.x86_64 pigsty 414.2 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-17-pgvectorscale 0.8.0 d13.aarch64 pigsty 286.2 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-17-pgvectorscale 0.8.0 u22.x86_64 pigsty 463.2 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-17-pgvectorscale 0.8.0 u22.aarch64 pigsty 336.7 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-17-pgvectorscale 0.8.0 u24.x86_64 pigsty 459.0 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-17-pgvectorscale 0.8.0 u24.aarch64 pigsty 332.4 KiB postgresql-17-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_16 0.8.0 el8.x86_64 pigsty 504.1 KiB pgvectorscale_16-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_16 0.8.0 el8.aarch64 pigsty 371.2 KiB pgvectorscale_16-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_16 0.8.0 el9.x86_64 pigsty 520.9 KiB pgvectorscale_16-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_16 0.8.0 el9.aarch64 pigsty 395.6 KiB pgvectorscale_16-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_16 0.8.0 el10.x86_64 pigsty 521.0 KiB pgvectorscale_16-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_16 0.8.0 el10.aarch64 pigsty 395.4 KiB pgvectorscale_16-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-16-pgvectorscale 0.8.0 d12.x86_64 pigsty 414.3 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-16-pgvectorscale 0.8.0 d12.aarch64 pigsty 286.0 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-16-pgvectorscale 0.8.0 d13.x86_64 pigsty 413.4 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-16-pgvectorscale 0.8.0 d13.aarch64 pigsty 286.3 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-16-pgvectorscale 0.8.0 u22.x86_64 pigsty 462.9 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-16-pgvectorscale 0.8.0 u22.aarch64 pigsty 336.9 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-16-pgvectorscale 0.8.0 u24.x86_64 pigsty 458.8 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-16-pgvectorscale 0.8.0 u24.aarch64 pigsty 332.2 KiB postgresql-16-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_15 0.8.0 el8.x86_64 pigsty 503.9 KiB pgvectorscale_15-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_15 0.8.0 el8.aarch64 pigsty 371.2 KiB pgvectorscale_15-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_15 0.8.0 el9.x86_64 pigsty 520.4 KiB pgvectorscale_15-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_15 0.8.0 el9.aarch64 pigsty 395.6 KiB pgvectorscale_15-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_15 0.8.0 el10.x86_64 pigsty 520.4 KiB pgvectorscale_15-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_15 0.8.0 el10.aarch64 pigsty 395.6 KiB pgvectorscale_15-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-15-pgvectorscale 0.8.0 d12.x86_64 pigsty 414.1 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-15-pgvectorscale 0.8.0 d12.aarch64 pigsty 285.9 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-15-pgvectorscale 0.8.0 d13.x86_64 pigsty 413.0 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-15-pgvectorscale 0.8.0 d13.aarch64 pigsty 286.3 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-15-pgvectorscale 0.8.0 u22.x86_64 pigsty 463.0 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-15-pgvectorscale 0.8.0 u22.aarch64 pigsty 336.8 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-15-pgvectorscale 0.8.0 u24.x86_64 pigsty 458.5 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-15-pgvectorscale 0.8.0 u24.aarch64 pigsty 332.3 KiB postgresql-15-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_14 0.8.0 el8.x86_64 pigsty 503.8 KiB pgvectorscale_14-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_14 0.8.0 el8.aarch64 pigsty 370.8 KiB pgvectorscale_14-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_14 0.8.0 el9.x86_64 pigsty 519.5 KiB pgvectorscale_14-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_14 0.8.0 el9.aarch64 pigsty 395.1 KiB pgvectorscale_14-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_14 0.8.0 el10.x86_64 pigsty 520.0 KiB pgvectorscale_14-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_14 0.8.0 el10.aarch64 pigsty 394.8 KiB pgvectorscale_14-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-14-pgvectorscale 0.8.0 d12.x86_64 pigsty 413.2 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-14-pgvectorscale 0.8.0 d12.aarch64 pigsty 285.9 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-14-pgvectorscale 0.8.0 d13.x86_64 pigsty 412.6 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-14-pgvectorscale 0.8.0 d13.aarch64 pigsty 285.9 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-14-pgvectorscale 0.8.0 u22.x86_64 pigsty 462.0 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-14-pgvectorscale 0.8.0 u22.aarch64 pigsty 336.3 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-14-pgvectorscale 0.8.0 u24.x86_64 pigsty 457.3 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-14-pgvectorscale 0.8.0 u24.aarch64 pigsty 331.7 KiB postgresql-14-pgvectorscale_0.8.0-1PIGSTY~noble_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_13 0.8.0 el8.x86_64 pigsty 504.4 KiB pgvectorscale_13-0.8.0-2PIGSTY.el8.x86_64.rpm
pgvectorscale_13 0.8.0 el8.aarch64 pigsty 370.9 KiB pgvectorscale_13-0.8.0-2PIGSTY.el8.aarch64.rpm
pgvectorscale_13 0.8.0 el9.x86_64 pigsty 520.3 KiB pgvectorscale_13-0.8.0-2PIGSTY.el9.x86_64.rpm
pgvectorscale_13 0.8.0 el9.aarch64 pigsty 395.4 KiB pgvectorscale_13-0.8.0-2PIGSTY.el9.aarch64.rpm
pgvectorscale_13 0.8.0 el10.x86_64 pigsty 520.3 KiB pgvectorscale_13-0.8.0-2PIGSTY.el10.x86_64.rpm
pgvectorscale_13 0.8.0 el10.aarch64 pigsty 394.9 KiB pgvectorscale_13-0.8.0-2PIGSTY.el10.aarch64.rpm
postgresql-13-pgvectorscale 0.8.0 d12.x86_64 pigsty 413.6 KiB postgresql-13-pgvectorscale_0.8.0-1PIGSTY~bookworm_amd64.deb
postgresql-13-pgvectorscale 0.8.0 d12.aarch64 pigsty 286.1 KiB postgresql-13-pgvectorscale_0.8.0-1PIGSTY~bookworm_arm64.deb
postgresql-13-pgvectorscale 0.8.0 d13.x86_64 pigsty 413.4 KiB postgresql-13-pgvectorscale_0.8.0-1PIGSTY~trixie_amd64.deb
postgresql-13-pgvectorscale 0.8.0 d13.aarch64 pigsty 285.8 KiB postgresql-13-pgvectorscale_0.8.0-1PIGSTY~trixie_arm64.deb
postgresql-13-pgvectorscale 0.8.0 u22.x86_64 pigsty 462.7 KiB postgresql-13-pgvectorscale_0.8.0-1PIGSTY~jammy_amd64.deb
postgresql-13-pgvectorscale 0.8.0 u22.aarch64 pigsty 336.4 KiB postgresql-13-pgvectorscale_0.8.0-1PIGSTY~jammy_arm64.deb
postgresql-13-pgvectorscale 0.8.0 u24.x86_64 pigsty 458.7 KiB postgresql-13-pgvectorscale_0.8.0-1PIGSTY~noble_amd64.deb
postgresql-13-pgvectorscale 0.8.0 u24.aarch64 pigsty 332.4 KiB postgresql-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