select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / AI and vectors

bktree

SP-GiST BK-tree index extension for 64-bit perceptual hashes and Hamming-distance searches.

pgext.cloud · Source code · Documentation · Control file

Overview

Packagebktree
Version1.0
PostgreSQL versions15
RepositoryUnspecified
Extension typeStandard
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableYes
Stars7
Latest commit2023-01-13
Catalogue updated2026-08-30

Related extensions

See also

pg_phashCalculate Hamming distance between decimal-encoded perceptual image hashes
hamming_distanceHamming distance and similarity functions for hexadecimal feature-vector strings.
bitstring_helpersHelper C functions and aggregates for PostgreSQL bit varying data.
tlsh_gistTLSH fuzzy-hash data type, distance operations, and GiST indexing for similarity search.
pg_emdFast approximate Earth Mover's Distance using dynamic tree embeddings
hyperspaceFour-dimensional point, box, and circle types with B-tree and SP-GiST/KD-tree operator classes.
colorsC functions for perceptual color-distance calculations in the CIE L*a*b* color space
pgvectorCustom vector type with Euclidean distance, cosine similarity, and prototype IVFFlat helpers.