Database / pgvector basics Interview Questions
What is pgvector and what problem does it solve for developers?
pgvector is an open-source PostgreSQL extension that adds native vector storage and similarity search capabilities to PostgreSQL. It allows developers to store high-dimensional vector embeddings generated by machine learning models alongside conventional relational data, and query them using efficient distance-based operators - all within the same database they already use.
The problem it solves: modern AI applications need to store and search vector embeddings (numerical representations of text, images, audio, etc.) to enable semantic search, recommendations, and RAG pipelines. Without pgvector, teams had to choose between:
- A dedicated vector database (Pinecone, Weaviate, Qdrant) - separate system, additional infrastructure cost, data synchronisation challenges
- Custom application-level search - slow, no indexing, hard to maintain
pgvector eliminates this tradeoff by extending PostgreSQL with vector types and operators. Teams get vector search alongside full ACID compliance, transactions, JOINs, replication, point-in-time recovery, and all other PostgreSQL features - with no new database system to operate.
| Property | Detail |
|---|---|
| Type | PostgreSQL extension |
| License | Open source (PostgreSQL License) |
| Current version | v0.8.4 (as of mid-2026) |
| Requires | PostgreSQL 11+ |
| Extension name | vector (not pgvector) |
| GitHub | github.com/pgvector/pgvector |
More Related questions...