跳转到主要内容

vectorscale

Advanced indexing for vector data with DiskANN

pgvectorscale : Advanced indexing for vector data with DiskANN

Overview

ID Extension Package Version Category License Language
1820 vectorscale pgvectorscale 0.9.1 RAG PostgreSQL Rust
Attribute Has Binary Has Library Need Load Has DDL Relocatable Trusted
--s-d-- No Yes No Yes no no

Packages

Type Repo Version PG Major Compatibility Package Pattern Dependencies
EXT PIGSTY 0.9.1 18 17 16 15 14 pgvectorscale vector
RPM PIGSTY 0.9.1 18 17 16 15 14 pgvectorscale_$v pgvector_$v
DEB PIGSTY 0.9.1 18 17 16 15 14 postgresql-$v-pgvectorscale postgresql-$v-pgvector
Linux / PG PG18 PG17 PG16 PG15 PG14
el8.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
el8.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
el9.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
el9.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
el10.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
el10.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
d12.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
d12.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
d13.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
d13.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
u22.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
u22.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
u24.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
u24.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
u26.x86_64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
u26.aarch64 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1 PIGSTY 0.9.1
Package Version OS ORG SIZE File URL
pgvectorscale_18 0.9.1 el8.x86_64 pigsty 1.1 MiB pgvectorscale_18-0.9.1-1PGSTY.el8.x86_64.rpm
pgvectorscale_18 0.9.1 el8.x86_64 pgdg 450.3 KiB pgvectorscale_18-0.9.1-1PGDG.rhel8.10.x86_64.rpm
pgvectorscale_18 0.9.1 el8.aarch64 pigsty 919.5 KiB pgvectorscale_18-0.9.1-1PGSTY.el8.aarch64.rpm
pgvectorscale_18 0.9.1 el8.aarch64 pgdg 388.9 KiB pgvectorscale_18-0.9.1-1PGDG.rhel8.10.aarch64.rpm
pgvectorscale_18 0.9.1 el9.x86_64 pigsty 1.1 MiB pgvectorscale_18-0.9.1-1PGSTY.el9.x86_64.rpm
pgvectorscale_18 0.9.1 el9.x86_64 pgdg 460.0 KiB pgvectorscale_18-0.9.1-1PGDG.rhel9.8.x86_64.rpm
pgvectorscale_18 0.9.1 el9.aarch64 pigsty 987.3 KiB pgvectorscale_18-0.9.1-1PGSTY.el9.aarch64.rpm
pgvectorscale_18 0.9.1 el9.aarch64 pgdg 416.2 KiB pgvectorscale_18-0.9.1-1PGDG.rhel9.8.aarch64.rpm
pgvectorscale_18 0.9.1 el10.x86_64 pigsty 1.1 MiB pgvectorscale_18-0.9.1-1PGSTY.el10.x86_64.rpm
pgvectorscale_18 0.9.1 el10.x86_64 pgdg 459.4 KiB pgvectorscale_18-0.9.1-1PGDG.rhel10.2.x86_64.rpm
pgvectorscale_18 0.9.1 el10.aarch64 pigsty 967.3 KiB pgvectorscale_18-0.9.1-1PGSTY.el10.aarch64.rpm
pgvectorscale_18 0.9.1 el10.aarch64 pgdg 416.2 KiB pgvectorscale_18-0.9.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-18-pgvectorscale 0.9.1 d12.x86_64 pigsty 903.4 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~bookworm_amd64.deb
postgresql-18-pgvectorscale 0.9.1 d12.aarch64 pigsty 743.9 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~bookworm_arm64.deb
postgresql-18-pgvectorscale 0.9.1 d13.x86_64 pigsty 903.9 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~trixie_amd64.deb
postgresql-18-pgvectorscale 0.9.1 d13.aarch64 pigsty 744.2 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~trixie_arm64.deb
postgresql-18-pgvectorscale 0.9.1 u22.x86_64 pigsty 1001.4 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~jammy_amd64.deb
postgresql-18-pgvectorscale 0.9.1 u22.aarch64 pigsty 879.1 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~jammy_arm64.deb
postgresql-18-pgvectorscale 0.9.1 u24.x86_64 pigsty 992.3 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~noble_amd64.deb
postgresql-18-pgvectorscale 0.9.1 u24.aarch64 pigsty 869.8 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~noble_arm64.deb
postgresql-18-pgvectorscale 0.9.1 u26.x86_64 pigsty 988.3 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~resolute_amd64.deb
postgresql-18-pgvectorscale 0.9.1 u26.aarch64 pigsty 868.1 KiB postgresql-18-pgvectorscale_0.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_17 0.9.1 el8.x86_64 pigsty 1.1 MiB pgvectorscale_17-0.9.1-1PGSTY.el8.x86_64.rpm
pgvectorscale_17 0.9.1 el8.x86_64 pgdg 450.1 KiB pgvectorscale_17-0.9.1-1PGDG.rhel8.10.x86_64.rpm
pgvectorscale_17 0.9.1 el8.aarch64 pigsty 916.9 KiB pgvectorscale_17-0.9.1-1PGSTY.el8.aarch64.rpm
pgvectorscale_17 0.9.1 el8.aarch64 pgdg 388.6 KiB pgvectorscale_17-0.9.1-1PGDG.rhel8.10.aarch64.rpm
pgvectorscale_17 0.9.1 el9.x86_64 pigsty 1.1 MiB pgvectorscale_17-0.9.1-1PGSTY.el9.x86_64.rpm
pgvectorscale_17 0.9.1 el9.x86_64 pgdg 461.4 KiB pgvectorscale_17-0.9.1-1PGDG.rhel9.8.x86_64.rpm
pgvectorscale_17 0.9.1 el9.aarch64 pigsty 983.1 KiB pgvectorscale_17-0.9.1-1PGSTY.el9.aarch64.rpm
pgvectorscale_17 0.9.1 el9.aarch64 pgdg 415.8 KiB pgvectorscale_17-0.9.1-1PGDG.rhel9.8.aarch64.rpm
pgvectorscale_17 0.9.1 el10.x86_64 pigsty 1.1 MiB pgvectorscale_17-0.9.1-1PGSTY.el10.x86_64.rpm
pgvectorscale_17 0.9.1 el10.x86_64 pgdg 458.7 KiB pgvectorscale_17-0.9.1-1PGDG.rhel10.2.x86_64.rpm
pgvectorscale_17 0.9.1 el10.aarch64 pigsty 966.9 KiB pgvectorscale_17-0.9.1-1PGSTY.el10.aarch64.rpm
pgvectorscale_17 0.9.1 el10.aarch64 pgdg 415.5 KiB pgvectorscale_17-0.9.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-17-pgvectorscale 0.9.1 d12.x86_64 pigsty 902.1 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~bookworm_amd64.deb
postgresql-17-pgvectorscale 0.9.1 d12.aarch64 pigsty 742.8 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~bookworm_arm64.deb
postgresql-17-pgvectorscale 0.9.1 d13.x86_64 pigsty 901.7 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~trixie_amd64.deb
postgresql-17-pgvectorscale 0.9.1 d13.aarch64 pigsty 741.9 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~trixie_arm64.deb
postgresql-17-pgvectorscale 0.9.1 u22.x86_64 pigsty 1001.3 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~jammy_amd64.deb
postgresql-17-pgvectorscale 0.9.1 u22.aarch64 pigsty 877.4 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~jammy_arm64.deb
postgresql-17-pgvectorscale 0.9.1 u24.x86_64 pigsty 989.2 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~noble_amd64.deb
postgresql-17-pgvectorscale 0.9.1 u24.aarch64 pigsty 866.9 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~noble_arm64.deb
postgresql-17-pgvectorscale 0.9.1 u26.x86_64 pigsty 984.7 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~resolute_amd64.deb
postgresql-17-pgvectorscale 0.9.1 u26.aarch64 pigsty 865.1 KiB postgresql-17-pgvectorscale_0.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_16 0.9.1 el8.x86_64 pigsty 1.1 MiB pgvectorscale_16-0.9.1-1PGSTY.el8.x86_64.rpm
pgvectorscale_16 0.9.1 el8.x86_64 pgdg 450.4 KiB pgvectorscale_16-0.9.1-1PGDG.rhel8.10.x86_64.rpm
pgvectorscale_16 0.9.1 el8.aarch64 pigsty 915.3 KiB pgvectorscale_16-0.9.1-1PGSTY.el8.aarch64.rpm
pgvectorscale_16 0.9.1 el8.aarch64 pgdg 389.4 KiB pgvectorscale_16-0.9.1-1PGDG.rhel8.10.aarch64.rpm
pgvectorscale_16 0.9.1 el9.x86_64 pigsty 1.1 MiB pgvectorscale_16-0.9.1-1PGSTY.el9.x86_64.rpm
pgvectorscale_16 0.9.1 el9.x86_64 pgdg 460.2 KiB pgvectorscale_16-0.9.1-1PGDG.rhel9.8.x86_64.rpm
pgvectorscale_16 0.9.1 el9.aarch64 pigsty 982.5 KiB pgvectorscale_16-0.9.1-1PGSTY.el9.aarch64.rpm
pgvectorscale_16 0.9.1 el9.aarch64 pgdg 415.4 KiB pgvectorscale_16-0.9.1-1PGDG.rhel9.8.aarch64.rpm
pgvectorscale_16 0.9.1 el10.x86_64 pigsty 1.1 MiB pgvectorscale_16-0.9.1-1PGSTY.el10.x86_64.rpm
pgvectorscale_16 0.9.1 el10.x86_64 pgdg 459.2 KiB pgvectorscale_16-0.9.1-1PGDG.rhel10.2.x86_64.rpm
pgvectorscale_16 0.9.1 el10.aarch64 pigsty 966.1 KiB pgvectorscale_16-0.9.1-1PGSTY.el10.aarch64.rpm
pgvectorscale_16 0.9.1 el10.aarch64 pgdg 416.1 KiB pgvectorscale_16-0.9.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-16-pgvectorscale 0.9.1 d12.x86_64 pigsty 900.2 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~bookworm_amd64.deb
postgresql-16-pgvectorscale 0.9.1 d12.aarch64 pigsty 740.6 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~bookworm_arm64.deb
postgresql-16-pgvectorscale 0.9.1 d13.x86_64 pigsty 900.5 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~trixie_amd64.deb
postgresql-16-pgvectorscale 0.9.1 d13.aarch64 pigsty 741.4 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~trixie_arm64.deb
postgresql-16-pgvectorscale 0.9.1 u22.x86_64 pigsty 1000.0 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~jammy_amd64.deb
postgresql-16-pgvectorscale 0.9.1 u22.aarch64 pigsty 876.5 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~jammy_arm64.deb
postgresql-16-pgvectorscale 0.9.1 u24.x86_64 pigsty 991.2 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~noble_amd64.deb
postgresql-16-pgvectorscale 0.9.1 u24.aarch64 pigsty 866.2 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~noble_arm64.deb
postgresql-16-pgvectorscale 0.9.1 u26.x86_64 pigsty 984.6 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~resolute_amd64.deb
postgresql-16-pgvectorscale 0.9.1 u26.aarch64 pigsty 864.7 KiB postgresql-16-pgvectorscale_0.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_15 0.9.1 el8.x86_64 pigsty 1.0 MiB pgvectorscale_15-0.9.1-1PGSTY.el8.x86_64.rpm
pgvectorscale_15 0.9.1 el8.x86_64 pgdg 450.3 KiB pgvectorscale_15-0.9.1-1PGDG.rhel8.10.x86_64.rpm
pgvectorscale_15 0.9.1 el8.aarch64 pigsty 906.9 KiB pgvectorscale_15-0.9.1-1PGSTY.el8.aarch64.rpm
pgvectorscale_15 0.9.1 el8.aarch64 pgdg 388.8 KiB pgvectorscale_15-0.9.1-1PGDG.rhel8.10.aarch64.rpm
pgvectorscale_15 0.9.1 el9.x86_64 pigsty 1.1 MiB pgvectorscale_15-0.9.1-1PGSTY.el9.x86_64.rpm
pgvectorscale_15 0.9.1 el9.x86_64 pgdg 461.1 KiB pgvectorscale_15-0.9.1-1PGDG.rhel9.8.x86_64.rpm
pgvectorscale_15 0.9.1 el9.aarch64 pigsty 973.0 KiB pgvectorscale_15-0.9.1-1PGSTY.el9.aarch64.rpm
pgvectorscale_15 0.9.1 el9.aarch64 pgdg 416.1 KiB pgvectorscale_15-0.9.1-1PGDG.rhel9.8.aarch64.rpm
pgvectorscale_15 0.9.1 el10.x86_64 pigsty 1.1 MiB pgvectorscale_15-0.9.1-1PGSTY.el10.x86_64.rpm
pgvectorscale_15 0.9.1 el10.x86_64 pgdg 459.0 KiB pgvectorscale_15-0.9.1-1PGDG.rhel10.2.x86_64.rpm
pgvectorscale_15 0.9.1 el10.aarch64 pigsty 961.6 KiB pgvectorscale_15-0.9.1-1PGSTY.el10.aarch64.rpm
pgvectorscale_15 0.9.1 el10.aarch64 pgdg 415.9 KiB pgvectorscale_15-0.9.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-15-pgvectorscale 0.9.1 d12.x86_64 pigsty 895.3 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~bookworm_amd64.deb
postgresql-15-pgvectorscale 0.9.1 d12.aarch64 pigsty 736.7 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~bookworm_arm64.deb
postgresql-15-pgvectorscale 0.9.1 d13.x86_64 pigsty 895.5 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~trixie_amd64.deb
postgresql-15-pgvectorscale 0.9.1 d13.aarch64 pigsty 736.9 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~trixie_arm64.deb
postgresql-15-pgvectorscale 0.9.1 u22.x86_64 pigsty 991.6 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~jammy_amd64.deb
postgresql-15-pgvectorscale 0.9.1 u22.aarch64 pigsty 871.0 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~jammy_arm64.deb
postgresql-15-pgvectorscale 0.9.1 u24.x86_64 pigsty 981.9 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~noble_amd64.deb
postgresql-15-pgvectorscale 0.9.1 u24.aarch64 pigsty 861.7 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~noble_arm64.deb
postgresql-15-pgvectorscale 0.9.1 u26.x86_64 pigsty 978.2 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~resolute_amd64.deb
postgresql-15-pgvectorscale 0.9.1 u26.aarch64 pigsty 858.2 KiB postgresql-15-pgvectorscale_0.9.1-1PGSTY~resolute_arm64.deb
Package Version OS ORG SIZE File URL
pgvectorscale_14 0.9.1 el8.x86_64 pigsty 1.0 MiB pgvectorscale_14-0.9.1-1PGSTY.el8.x86_64.rpm
pgvectorscale_14 0.9.1 el8.x86_64 pgdg 449.4 KiB pgvectorscale_14-0.9.1-1PGDG.rhel8.10.x86_64.rpm
pgvectorscale_14 0.9.1 el8.aarch64 pigsty 903.6 KiB pgvectorscale_14-0.9.1-1PGSTY.el8.aarch64.rpm
pgvectorscale_14 0.9.1 el8.aarch64 pgdg 388.2 KiB pgvectorscale_14-0.9.1-1PGDG.rhel8.10.aarch64.rpm
pgvectorscale_14 0.9.1 el9.x86_64 pigsty 1.1 MiB pgvectorscale_14-0.9.1-1PGSTY.el9.x86_64.rpm
pgvectorscale_14 0.9.1 el9.x86_64 pgdg 459.6 KiB pgvectorscale_14-0.9.1-1PGDG.rhel9.8.x86_64.rpm
pgvectorscale_14 0.9.1 el9.aarch64 pigsty 969.4 KiB pgvectorscale_14-0.9.1-1PGSTY.el9.aarch64.rpm
pgvectorscale_14 0.9.1 el9.aarch64 pgdg 414.9 KiB pgvectorscale_14-0.9.1-1PGDG.rhel9.8.aarch64.rpm
pgvectorscale_14 0.9.1 el10.x86_64 pigsty 1.1 MiB pgvectorscale_14-0.9.1-1PGSTY.el10.x86_64.rpm
pgvectorscale_14 0.9.1 el10.x86_64 pgdg 459.1 KiB pgvectorscale_14-0.9.1-1PGDG.rhel10.2.x86_64.rpm
pgvectorscale_14 0.9.1 el10.aarch64 pigsty 960.4 KiB pgvectorscale_14-0.9.1-1PGSTY.el10.aarch64.rpm
pgvectorscale_14 0.9.1 el10.aarch64 pgdg 415.2 KiB pgvectorscale_14-0.9.1-1PGDG.rhel10.2.aarch64.rpm
postgresql-14-pgvectorscale 0.9.1 d12.x86_64 pigsty 892.3 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~bookworm_amd64.deb
postgresql-14-pgvectorscale 0.9.1 d12.aarch64 pigsty 733.8 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~bookworm_arm64.deb
postgresql-14-pgvectorscale 0.9.1 d13.x86_64 pigsty 892.0 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~trixie_amd64.deb
postgresql-14-pgvectorscale 0.9.1 d13.aarch64 pigsty 734.9 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~trixie_arm64.deb
postgresql-14-pgvectorscale 0.9.1 u22.x86_64 pigsty 988.4 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~jammy_amd64.deb
postgresql-14-pgvectorscale 0.9.1 u22.aarch64 pigsty 868.2 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~jammy_arm64.deb
postgresql-14-pgvectorscale 0.9.1 u24.x86_64 pigsty 978.7 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~noble_amd64.deb
postgresql-14-pgvectorscale 0.9.1 u24.aarch64 pigsty 858.4 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~noble_arm64.deb
postgresql-14-pgvectorscale 0.9.1 u26.x86_64 pigsty 977.1 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~resolute_amd64.deb
postgresql-14-pgvectorscale 0.9.1 u26.aarch64 pigsty 855.8 KiB postgresql-14-pgvectorscale_0.9.1-1PGSTY~resolute_arm64.deb

Source

pig build pkg pgvectorscale;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -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

Create this extension with:

CREATE EXTENSION vectorscale CASCADE; -- requires vector

Usage

Sources:

vectorscale adds the StreamingDiskANN approximate vector index to pgvector. Its diskann access method supports L2, inner product, cosine distance, and label filtering. It requires vector; creating the extension requires superuser privileges. Version 0.9.1 validates vector types, dimensions, and stored datum layouts to address crashes, memory disclosure, and out-of-bounds writes.

Core Workflow

Declare a concrete vector dimension and select the operator class matching the query distance:

CREATE EXTENSION vectorscale CASCADE;
CREATE TABLE documents (
    id bigserial PRIMARY KEY,
    contents text,
    embedding vector(3),
    labels smallint[]
);
INSERT INTO documents(contents, embedding, labels)
VALUES ('PostgreSQL search', '[1,2,3]', ARRAY[1,3]::smallint[]);
CREATE INDEX documents_diskann ON documents
USING diskann (embedding vector_cosine_ops, labels);

SELECT id, contents FROM documents
WHERE labels && ARRAY[1]::smallint[]
ORDER BY embedding <=> '[1,2,3]'::vector
LIMIT 10;

Use vector_l2_ops with <->, vector_ip_ops with <#>, or vector_cosine_ops with <=>. Labels use smallint[], and && means any requested label overlaps. Ordinary WHERE conditions are also supported, but selective filters can reduce the returned result count and need workload-specific testing.

Tuning and Ordering

diskann.query_search_list_size controls extra graph-search candidates (default 100); diskann.query_rescore controls exact rescoring (default 50, 0 disables it):

SET diskann.query_search_list_size = 200;
SET diskann.query_rescore = 100;

Build options include storage_layout, num_neighbors, search_list_size, and num_dimensions. Compressed memory-optimized storage is the default. Increase maintenance memory only after considering concurrent builds and dataset size. Parallel builds require the supported compression layout and do not support label columns in this version.

DiskANN returns relaxed distance ordering. Sort a materialized result set when strict ordering is required; this reorders the retrieved candidates without making approximate search exhaustive. Null vectors are not indexed, null labels act as empty arrays, and null array elements are ignored. Index creation on UNLOGGED tables is unsupported.

Upgrade to 0.9.1

Install matching extension files and update each database:

ALTER EXTENSION vectorscale UPDATE TO '0.9.1';

The upgrade binds operator classes to pgvector’s actual installation schema and checks existing bindings. If an existing operator class references the wrong type or operators, the upgrade aborts; follow the release instructions to drop the affected operator class and recreate extension objects, accounting for dependent indexes.

DiskANN now requires a valid vector(N) column type. An unconstrained vector column cannot be indexed. Existing indexes with invalid persisted dimensions raise errors during scans, inserts, and vacuum. Correct the column type, then drop and recreate the affected indexes: REINDEX cannot repair this condition. Valid existing indexes do not need a blanket rebuild merely because 0.9.1 was installed. The SQL surface is not relocatable after extension creation.