select open change scope Open full search

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

Extensions / AI and vectors

kmeans

K-means clustering window function for PostgreSQL

pgext.cloud · Source code · Documentation · Control file · PGXN

Overview

Packagekmeans
Version1.1.0
PostgreSQL versions10 · 11 · 12 · 13 · 14 · 15 · 16 · 17 · 18
RepositoryUnspecified
Extension typeStandard
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedNo
RelocatableYes
Stars106
Latest commit2012-06-26
Latest release2011-07-22
Catalogue updated2026-08-30

Related extensions

See also

hclustC function for agglomerative or divisive hierarchical clustering that writes cluster assignments back to a table.
fbsqlClosure-preserving formula-based statistical modeling in SQL
pg4mlMachine learning framework for PostgreSQL
pgpymlRun scikit-learn machine-learning models inside PostgreSQL through PL/Python functions and triggers.
pg_onnxONNX Runtime integrated with PostgreSQL. Perform ML inference with data in your database.
pgmlRun AL/ML workloads with SQL interface
pgdlPostgreSQL extension for deep learning model inference and vector storage inside the database.