vectorize
pg_vectorize : The simplest way to do vector search on Postgres
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1830 | vectorize | pg_vectorize | 0.26.2 |
RAG | PostgreSQL | Rust |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | No | Yes | Yes | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | vectorize |
| Requires | pg_cron pgmq vector |
| See Also | vector pgcontext pgml pg4ml pg_rrf pg_search pg_bestmatch vchord_bm25 pg_summarize pgmnemo |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.26.2 |
18 17 16 15 14 | pg_vectorize |
pg_cron, pgmq, vector |
| RPM | PIGSTY | 0.26.2 |
18 17 16 15 14 | pg_vectorize_$v |
pgmq_$v, pg_cron_$v, pgvector_$v |
| DEB | PIGSTY | 0.26.2 |
18 17 16 15 14 | postgresql-$v-pg-vectorize |
postgresql-$v-pgmq, postgresql-$v-pg-cron, postgresql-$v-pgvector |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| el8.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| el9.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| el9.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| el10.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| el10.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| d12.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| d12.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| d13.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| d13.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| u22.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| u22.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| u24.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| u24.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| u26.x86_64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
| u26.aarch64 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 | PIGSTY 0.26.2 |
Source
github.com/ChuckHend/pg_vectorize
pg_vectorize-0.26.2.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
Sources: repo README, extension README, v0.26.2 release
vectorize is the PostgreSQL extension from pg_vectorize. Upstream documents two modes: a standalone HTTP service and the in-database SQL extension. For the packaged extension here, the SQL workflow is the relevant one.
Enable The Extension
The extension README lists pg_cron, pgmq, and pgvector as dependencies, plus vectorize.embedding_service_url for the embedding service.
Create A Search Job
The high-level SQL API starts with vectorize.table():
The extension README says this creates and maintains an embeddings column for the source table.
Search, RAG, And Direct Model Calls
Search with:
Upstream also documents:
vectorize.rag()for retrieval-augmented answers.vectorize.generate()for text generation.vectorize.encode()for direct embedding generation.vectorize.import_embeddings()for loading precomputed vectors.
Update Behavior And v0.26.2 Note
The extension README says schedule => '* * * * *' checks for updates every minute, while schedule => 'realtime' creates triggers for immediate refresh on inserts and updates.
pg_vectorize 0.26.2 updates vector-serve and security-related dependencies; there is no material SQL/API delta beyond the existing README surface.