macrostack
Browse

The AI stack

Categories

Local & Sovereign AINotes & KnowledgeObservability & MonitoringPassword ManagersWeb AnalyticsTeam ChatSmart HomeNetworking & RoutersVideo ConferencingCloud Storage & SyncPhotos & MediaAPI DevelopmentImage EditingWorkflow Automation & iPaaSDeveloper Tools & ContainersOffice & Productivity SuitesNo-Code DatabasesCode Hosting & Git ForgesProject ManagementEmail Marketing & NewslettersScheduling & BookingError Tracking & Exception MonitoringLog Management & SIEMVPN & PrivacyEmail & Secure MailVector Databases & AI SearchLLM & Agent FrameworksDomains & Web HostingData Removal & PrivacyAuthentication & IdentityHelp Desk & Customer SupportCloud & VPSKubernetes & Container PlatformsEmbedding ModelsPDF & DocumentsAI Coding AssistantsAI Voice & SpeechLLM Observability & EvaluationLLM Gateways & RoutingCloud GPU & AI ComputeCI/CD & build automationData & pipeline orchestrationModel serving & inferenceAI agent frameworksBackend as a serviceSecrets managementFeature flags & experimentationProduct analyticsSearch infrastructureUptime & status monitoringAffiliate & partner platformsVisitor identification & personalisationWikis & internal docsIdentity & access managementData warehouses & analytics enginesCustomer data platformsCRMObject storageBI & dashboardsE-signatureWhiteboards & diagrammingIn-memory data stores & cachingPlatform as a serviceTransactional & bulk emailHeadless CMSDesign & prototypingE-commerce platformsInternal tools & admin panelsManaged databasesForms & surveysFine-Tuning & Model TrainingRAG & Retrieval PlatformsLLM Evaluation & TestingAI Guardrails & Content SafetySpeech Recognition & TranscriptionExperiment Tracking & ML OpsDocument AI & OCR

About

How we rank & score

Layer 4 · self-hosting reality check

What it actually takes to self-host pgvector

The docs say Whatever Postgres already uses. In practice you want 8 GB — the HNSW index wants to be resident. Here is the honest version — real requirements, real monthly cost, what you will be maintaining, and the one thing that catches people out.

Usually reached from Pinecone alternatives, where pgvector is one of the picks.

RAM — documented minimumWhatever Postgres already uses
RAM — what it really needs8 GB — the HNSW index wants to be resident
CPU4 vCPU
DiskIndex is roughly 1.5× the raw vector size
Monthly cost$0 additional if you already run Postgres. That is the entire argument.
Setup time20 minutes — `CREATE EXTENSION vector;`
How you install ita Postgres extension. No new service, no new backup story, no new thing to monitor.
Ongoing maintenanceNone beyond the Postgres you already maintain.
Where it stops scalingMillions of vectors comfortably. The killer feature is joining embeddings to relational data in one query, which no dedicated vector database can do.

The thing that catches people out

Building an HNSW index on a large table locks writes and can take hours, and the default `maintenance_work_mem` makes it far slower than necessary. Raise it substantially for the build (2 GB+), use CONCURRENTLY where you can, and do it in a maintenance window. People start an index build on a live table at 2pm and regret it.

When not to self-host pgvector

You are past roughly 10 million vectors with heavy filtering. Dedicated engines pull ahead there, and that is the honest crossover point.

Every guide here carries this section. A site that only ever tells you to self-host is selling something — the useful answer is sometimes no.

Other Layer 4 self-hosting guides

Common questions

How much RAM does pgvector actually need?
8 GB — the HNSW index wants to be resident in practice. The documented minimum is Whatever Postgres already uses, which is the figure at which the process starts rather than the figure at which it works under real use. 4 vCPU alongside it.
What does self-hosting pgvector cost per month?
$0 additional if you already run Postgres. That is the entire argument. This is commodity VPS pricing and excludes your time, which is the larger cost for most people — budget for none beyond the Postgres you already maintain.
How long does it take to set up pgvector?
20 minutes — `CREATE EXTENSION vector;`, via a Postgres extension. No new service, no new backup story, no new thing to monitor..
When should I NOT self-host pgvector?
You are past roughly 10 million vectors with heavy filtering. Dedicated engines pull ahead there, and that is the honest crossover point.
What is the most common mistake when self-hosting pgvector?
Building an HNSW index on a large table locks writes and can take hours, and the default `maintenance_work_mem` makes it far slower than necessary. Raise it substantially for the build (2 GB+), use CONCURRENTLY where you can, and do it in a maintenance window. People start an index build on a live table at 2pm and regret it.
The Macrostack brief

New swaps, worth your inbox.

A short, occasional email when we add a high-intent alternative or ship a new head-to-head. No spam, no selling your address — unsubscribe in one click.