Vector Databases for Indie Builders: When Postgres Is Enough and When It's Not
You're building a product that needs semantic search or RAG. Someone told you that you need a vector database. Maybe you saw a startup raise $100M for one and figured it must be essential.
Here's the truth: if you're already running Postgres, you probably don't need a separate vector database. The pgvector extension handles what most indie builders need, costs nothing extra, and lives in infrastructure you already understand.
But there's a line where that changes. This post tells you where that line is.
Table of Contents
- What Vector Databases Actually Do
- The Three Real Options for Indie Builders
- When Postgres with pgvector Is Enough
- When You Need Pinecone or Weaviate
- Cost Reality Check
- Making the Choice
What Vector Databases Actually Do
Vector databases store embeddings and let you search by similarity instead of exact matches. When a user asks "how do I reset my password," you convert that question into a vector, find the closest matching vectors in your knowledge base, and return those documents.
That's it. The magic is in the similarity search, not in some proprietary algorithm.
Analogy: Regular databases are like filing cabinets organized alphabetically. Vector databases are like a librarian who remembers every book's themes and suggests similar ones based on what you're interested in, not just title matches.
Every vector database does three things:
- Stores vectors (arrays of floating point numbers)
- Indexes them for fast retrieval
- Runs similarity searches (usually cosine similarity or dot product)
The differences come down to speed at scale, operational complexity, and cost.
The Three Real Options for Indie Builders
PostgreSQL + pgvector
An extension that adds vector support to Postgres. You're still using Postgres, just with extra column types and index methods.
What it gives you:
- Vectors live alongside your regular data
- Standard Postgres operations (backups, replication, transactions)
- No new infrastructure to learn or pay for
- HNSW indexing for fast approximate search
What it costs:
- Nothing if you're already running Postgres
- Same hosting costs as your current database
Pinecone
Managed vector database as a service. You send vectors via API, they handle everything else.
What it gives you:
- Fully managed, no infrastructure
- Fast at large scale (10M+ vectors)
- Built-in metadata filtering
- Automatic scaling
What it costs:
- Free tier: 1 index, 100K vectors, limited to one pod
- Paid: starts around $70/month for production use
Weaviate
Open source vector database you can self-host or use their managed cloud.
What it gives you:
- More features than pgvector (built-in vectorization, hybrid search)
- Can self-host for free
- Managed cloud option available
- GraphQL API
What it costs:
- Self-hosted: your infrastructure costs
- Managed: free tier with limits, paid plans from $25/month
When Postgres with pgvector Is Enough
For most indie products, pgvector covers everything you need. Here's when to stick with it:
You Have Fewer Than 1 Million Vectors
This covers:
- Documentation search for a SaaS product
- Customer support chatbots with company knowledge
- Semantic search over blog posts or articles
- Small to medium RAG applications
pgvector with HNSW indexing handles this scale with query times under 100ms. You won't notice the difference between this and Pinecone.
You're Already Running Postgres
If your application data lives in Postgres, keeping vectors there makes sense:
- No data synchronization between systems
- Use the same backup and monitoring tools
- Join vector searches with regular queries
- One database to secure and maintain
Adding pgvector is literally CREATE EXTENSION vector; and you're done.
You Value Operational Simplicity
Every new service adds complexity:
- Another API to authenticate
- Another service to monitor
- Another bill to pay
- Another thing to break at 3am
If you're a solo builder or small team, this matters more than theoretical performance gains you don't need yet.
Cost Comparison for Small Scale
| Scenario | pgvector | Pinecone | Weaviate Cloud | | --- | --- | --- | | 100K vectors | Existing DB cost | Free tier | Free tier | | 500K vectors | Existing DB cost | $70/month | $25/month | | Storage overhead | Minimal | Included | Included | | Ops burden | None (same DB) | None (managed) | None (managed) |
When You Need Pinecone or Weaviate
There's a point where pgvector stops making sense. Here's when:
You're Past 10 Million Vectors
At this scale, dedicated vector databases pull ahead on performance. Pinecone is built for this. Weaviate handles it well. pgvector starts showing strain.
You'll see:
- Slower query times (200ms+)
- Index rebuilds taking hours
- Memory pressure on your Postgres instance
You Need Advanced Filtering
If you're doing complex metadata filters alongside vector search ("find similar products, but only in stock, under $50, from these brands"), dedicated vector DBs handle this better.
pgvector can do it, but the performance isn't great when combining vector similarity with multiple metadata filters.
You're Horizontally Scaling
Pinecone scales horizontally automatically. Weaviate supports sharding. Postgres with pgvector scales vertically (bigger machine).
If you need to distribute vectors across multiple machines, you want a database designed for it.
You're Generating Vectors at High Volume
If you're indexing thousands of new documents per hour, you want:
- Async indexing that doesn't block writes
- Automatic index optimization
- Built-in rate limiting and quotas
Dedicated vector DBs handle this better than pgvector.
Cost Reality Check
Let's talk real numbers for a product with moderate traction:
Scenario: 250K vectors, 50K searches per month
| Option | Monthly Cost | What You Get |
|---|---|---|
| pgvector | $0 extra | Part of existing Postgres hosting |
| Weaviate (self-hosted) | $20-40 | Separate container, your infrastructure |
| Weaviate (cloud) | $25 | Managed, automatic backups |
| Pinecone | $70 | Managed, guaranteed uptime, support |
The cost difference isn't huge, but at indie scale, $70/month matters. That's another tool subscription or part of your hosting bill.
When the cost makes sense:
- You're charging customers for AI features
- Vector search is core to your product value
- You're past product-market fit and scaling
When it doesn't:
- You're in MVP or early validation
- Vectors are a nice-to-have feature
- You're bootstrapping and watching every dollar
Making the Choice
Here's the decision tree:
Start with pgvector if:
- You're already using Postgres
- You have fewer than 1M vectors
- You're pre-revenue or early stage
- You prefer operational simplicity
Move to Weaviate if:
- You need features pgvector lacks (hybrid search, built-in vectorization)
- You want room to grow before hitting limits
- Self-hosting doesn't scare you, or you'll pay for managed
Jump to Pinecone if:
- You need guaranteed performance at scale
- You're past 10M vectors
- You want zero operational burden
- Cost isn't your primary constraint
The good news: you can migrate later. Start simple. Most builders overestimate their scale needs and underestimate the cost of complexity.
pgvector isn't the "budget option" anymore. In 2024, it's a legitimate choice that happens to cost nothing extra. Use it until you have a specific reason not to.
Conclusion
The vector database market wants you to believe you need specialized infrastructure from day one. You don't.
If you're running Postgres and have under a million vectors, pgvector is enough. It's fast enough, simple enough, and costs nothing extra. When you hit real scale or need advanced features, Pinecone and Weaviate are there.
But most indie builders never hit that point. They build useful products with pgvector and never think about it again.
Start simple. Add complexity only when you have evidence you need it. Your users won't know or care what vector database you're using. They'll care whether your search works and your product solves their problem.