For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Most Viewed PostgreSQL Articles
-
How to Enable pgvector
-
How to Create a Vector Index
-
How to Use pgvectorscale with PostgreSQL Vector Search
-
How to Create a PostgreSQL Vector Database Cluster
-
Vector Search Quickstart
-
How to Generate and Load Embeddings
-
Best Practices for Advanced PostgreSQL Vector Workloads
-
How to Query with Hybrid Search
-
Best Practices for PostgreSQL Vector Search
-
How to Index Vectors
Getting Started
Quickstart guides for using DigitalOcean Managed PostgreSQL with pgvector as a vector database.
How-Tos
How to enable pgvector, load embeddings, index and tune vector search, and build advanced workloads with pgvectorscale.
Concepts
Core PostgreSQL vector search concepts, including pgvector, pgvectorscale, embeddings, vector indexes, distance operators, and hybrid search.
DigitalOcean Managed PostgreSQL for vector search is the same managed PostgreSQL engine available under Managed Databases, with support for vector workloads through PostgreSQL extensions.
Use PostgreSQL for vector search when you want to store embeddings alongside relational data, query vectors with SQL, and keep one database as your source of truth.
PostgreSQL vector databases support:
vector: The pgvector extension for vector, halfvec, and sparsevec columns, exact search, HNSW indexes, and IVFFlat indexes. Available on PostgreSQL 13 and later.
vectorscale: The pgvectorscale extension for StreamingDiskANN and Statistical Binary Quantization for larger, disk-resident vector workloads. Available on PostgreSQL 14 and later.
Enable each extension per database with CREATE EXTENSION.
When to Choose PostgreSQL
Choose PostgreSQL for vector workloads when you need:
- Vectors with relational data: Combine vector similarity search with SQL filters, joins, and transactions.
- One database: Store source data, metadata, and embeddings together without syncing to a separate vector store.
- PostgreSQL tooling: Use existing migrations, backups, replication, observability, and access-control patterns.
- Small to medium vector datasets: Use pgvector HNSW or IVFFlat indexes for common vector search workloads.
For larger search-focused workloads, consider OpenSearch or Weaviate. For hybrid keyword and vector search as a first-class search workflow, consider OpenSearch.
What Is Included
PostgreSQL vector databases include the following vector search capabilities:
- pgvector
vector extension: Available on PostgreSQL 13 and later.
- pgvectorscale
vectorscale extension: Available on PostgreSQL 14 and later.
- HNSW and IVFFlat indexes: Supported through pgvector.
- StreamingDiskANN and SBQ: Supported through
vectorscale.
- Hybrid full-text and vector search: Supported with
tsvector, GIN indexes, and vector indexes.
- In-database embedding generation: Not supported. Generate embeddings in your application or ingest pipeline, then insert them into PostgreSQL.
PostgreSQL doesn’t generate embeddings. Generate embeddings in your application or ingest pipeline, then insert the resulting vectors into PostgreSQL.
Use Existing PostgreSQL Clusters
PostgreSQL clusters created through Vector Databases and Managed Databases use the same managed PostgreSQL engine. If you already have a compatible Managed PostgreSQL cluster, enable vector search with:
Latest Updates
Upcoming Changes
-
Beginning 15 October 2026 for accounts that have never created a PostgreSQL or MySQL database cluster and 30 November 2026 for all accounts, PostgreSQL and MySQL Standard Edition no longer offer plans with more than 4 GiB of RAM or support standby and read-only nodes. On 15 October 2026, Advanced Edition adds Basic - Shared CPU plans with 8 GiB to 64 GiB of RAM. Existing clusters are not affected.
Learn more on PostgreSQL and MySQL Plan Changes Beginning 15 October 2026.
7 October 2026
6 October 2026
-
PostgreSQL Advanced Edition clusters now support 20 additional extensions beyond the pre-installed pg_repack, pg_stat_statements, pgaudit, plpgsql, and vector extensions, including pg_trgm, pgcrypto, citext, and uuid-ossp. You can enable them with CREATE EXTENSION. See Supported PostgreSQL Extensions.
30 September 2026
-
You can no longer install extensions on PostgreSQL Advanced Edition clusters with CREATE EXTENSION. The pre-installed pg_repack, pg_stat_statements, pgaudit, plpgsql, and vector extensions remain available. To request another extension, contact support. See Supported PostgreSQL Extensions.
For more information, see the full release notes.
We can't find any results for your search.
Try using different keywords or simplifying your search terms.