DEV Community

Cover image for The Index Is the Bill: Managed Postgres and pgvector Costs in Late 2026
Signal & Silicon
Signal & Silicon

Posted on Originally published at vervebrief.com

The Index Is the Bill: Managed Postgres and pgvector Costs in Late 2026

A year ago the demo ran on a $15 database. Ten million chunks later, the same application needs 36 GB of vector index in memory before a query returns in under 100 milliseconds, and the plan that used to cover it costs $984 a month. Nothing in the code changed; the data grew, and every managed Postgres prices RAM in tiers.

This is a comparison of four ways to run that workload in December 2026: Supabase, Neon, Amazon RDS for PostgreSQL, and a self-hosted Postgres on a rented droplet. I priced the same database at 20, 80 and 320 GB from published rate cards on December 3, then added the line item that quietly decides serverless architectures: connections.

At a glance

  • Who — teams running retrieval or semantic search on Postgres, from 20 GB of chunks to a few hundred, with traffic that never fully stops.
  • Cost — $84 to $6,270 a month for the same 80 GB-class workload, depending on the route and whether you buy a standby.
  • When — before the next RAM upgrade, and before anyone signs a savings plan against the wrong shape of workload.
  • Caveat — list prices and my arithmetic, not vendor quotes. Reserved instances and committed-use discounts move the RDS line by 30 percent or more.

Method note: every monthly total below is my calculation on the published rates in Source notes, at 730 hours per month. The sizing rule and the workload shape are stated in the text so you can substitute your own numbers.

Why a vector workload prices differently from an ordinary app

An HNSW index is a multilayer graph that has to sit in memory to answer quickly and in maintenance_work_mem to build at a sane speed; pgvector's documentation warns when the graph stops fitting. An order table can live on disk for pennies. A vector table cannot.

The sizing rule I used

A 1,024-dimension embedding stored as halfvec takes 2 KB, the HNSW link list at the default m = 16 adds roughly 130 bytes per row, and the chunk text adds another 1.5 to 2 KB, so index and rows land near 2.2 KB per chunk with the graph a little under half. That gives the rule used throughout: RAM in GB equals 0.45 times the database size plus 6 GB for connections, sort buffers and the planner. It is blunt, and it decides which tier you buy.

Half vectors are not a rounding detail

halfvec stores each dimension in two bytes instead of four, and pgvector accepts 4,000 dimensions in that type against 2,000 for plain vector. At ten million chunks the difference is about 20 GB of index: one column type decides whether 64 GB is enough or you buy 128 GB for a graph you could have halved.

Storage is the cheap part until it is the only part

A terabyte of storage at list price costs $118 on RDS gp3, $127 on Supabase past the included 8 GB, $102 on a DigitalOcean volume, and $358 on Neon at $0.35/GB-month. At 20 GB that spread is noise; at 320 GB it is $290 a month before compute, which is why a per-CU-hour provider has to be cheaper somewhere else to win.

The four rate cards, read on December 3

Supabase: a flat plan plus a compute add-on

Pro is $25 a month with $10 of compute credit, an 8 GB disk per project, 250 GB of egress and seven-day backups; the credit covers the 1 GB Micro instance, so $25 is the floor. Compute above that is a fixed monthly add-on: $110 for 8 GB with 2 dedicated vCPU, $410 for 32 GB, $960 for 64 GB, up to $3,730 for 256 GB. Disk past 8 GB is $0.125 per GB-month, egress past 250 GB is $0.09 per GB, and point-in-time recovery is its own $100 a month. Failover is not on the card: a standby means Team at $599 before compute.

Neon: CU-hours, with a cliff at 16 CU

Neon bills compute by the CU-hour at $0.106 on Launch and $0.222 on Scale, where one CU is roughly 4 GB of RAM. Storage is $0.35 per GB-month, instant restore $0.20, egress 500 GB included then $0.09 per GB. The attractive half is scale-to-zero: a staging database running four hours a day costs about $5 a month with 5 GB of storage. The half that bites is the ceiling — autoscaling stops at 16 CU, or 64 GB, and past that fixed Scale sizes cost more than double the CU-hour rate.

RDS: instances by the hour, and a proxy you will end up buying

RDS for PostgreSQL is priced per instance-hour in us-east-1 on Graviton: db.m7g.large at $0.168, db.m7g.xlarge at $0.337, db.r7g.2xlarge at $0.956, db.r7g.8xlarge at $3.824, single-AZ, and Multi-AZ doubles the line for a synchronous standby. Storage is $0.115 per GB-month on gp3, backups beyond provisioned size $0.095, and RDS Proxy $0.015 per vCPU-hour — $43.80 a month on 4 vCPU, $350 on 32.

Self-hosted: a droplet, a volume, and your Saturdays

A DigitalOcean memory-optimized droplet with 64 GB of RAM, 8 vCPU and 200 GiB of NVMe is $336 a month; 192 GB and 24 vCPU is $1,008, and block storage is $0.10 per GB-month. Hetzner's dedicated cloud line starts at €36.99 a month excluding VAT. What no card shows is the pager: Patroni or repmgr, a WAL archive, a restore you have actually performed. That is the trade behind self-hosting an LLM instead of paying per token — control bought with attention.

Table 1. Rate card for four routes, list prices checked 2026-12-03. Rows are ordered from most to least managed.

Route Compute Storage per GB-month Egress Decision rule
Supabase Pro plus add-on $10 to $3,730 per month, flat $0.125 after 8 GB 250 GB included, then $0.09/GB Pick when you want auth, storage and a pooler on one invoice.
Neon Launch or Scale $0.106 or $0.222 per CU-hour $0.35 500 GB included, then $0.09/GB Pick for many small, spiky or per-tenant databases.
RDS Single-AZ $0.168 to $3.824 per hour $0.115 on gp3 100 GB free AWS-wide, then per GB Pick when the rest of the stack already lives on AWS.
RDS Multi-AZ Double the instance line $0.115 on gp3 As above Pick when failover is a requirement, not a wish.
Self-hosted Droplet $84 to $1,344 per month $0.10 on a volume 4,000 GiB included Pick when someone on the team enjoys Postgres and has tested a restore.

The same database at 20, 80 and 320 GB

Three sizes, one shape: always-on, ten chunks per query, one region, no reserved instances. At each size I took the cheapest tier that satisfies the RAM rule, then added disk, the proxy where needed, and the egress a RAG service generates — small, since a ten-chunk answer is 20 KB. The 80 GB case is where most teams land after a year of indexing, so it is worth walking through.

  • Supabase. The 64 GB, 16 vCPU 4XL instance is $960, minus the $10 credit, plus the $25 plan, plus 72 GB of disk, for $984 a month.
  • Neon. Eleven CU at $0.106 for 730 hours is $851, plus 80 GB at $0.35 is $28, for $879.
  • RDS. db.r7g.2xlarge at $0.956 for 730 hours is $698, plus 80 GB of gp3 is $9, plus RDS Proxy on eight vCPU is $88, for $795.
  • Self-hosted. A 64 GB droplet with 200 GiB of local NVMe is $336, disk included.

Table 2. Monthly list cost for the same workload at three sizes (my calculation). The parenthetical is the tier each route had to buy; the difference between those tiers is most of the price difference.

Case Supabase Neon RDS Single-AZ RDS Multi-AZ Self-hosted Decision rule
20 GB, 9 GB of index $226 (XL, 16 GB) $317 (4 CU) $199 (r7g.large) $373 $84 Every route works; choose on features and on who answers the pager.
80 GB, 36 GB of index $984 (4XL, 64 GB) $879 (11 CU) $795 (r7g.2xlarge) $1,493 $336 You pay for RAM you cannot fill in half of these tiers; compare the tier edge, not the plan.
320 GB, 144 GB of index $2,854 (12XL, 192 GB) $6,270 (38 CU, Scale) $3,179 (r7g.8xlarge) $5,970 $1,008 Per-CU billing is twice the flat-fee route; buy flat or self-host.

Figure 1. Monthly list cost for an always-on RAG database as it grows, using the cheapest tier that fits the RAM rule in each case (my calculation from the rates below).

What the 80 GB case shows

Self-hosting is $336, RDS $795, Neon $879, Supabase $984, Multi-AZ RDS $1,493. The two flat-fee managed routes bracket the CU-hour one, and the cheapest managed option costs $459 a month more than the droplet — the price of an on-call rotation you do not run, an upgrade path you do not test, a database you cannot SSH into at 2 a.m. Fair for a small team, poor for one that already runs its own infrastructure.

At 320 GB the order turns over

Neon's 38 CU at the Scale rate costs $6,270, more than double RDS single-AZ at $3,179 and nearly double Supabase's 192 GB instance at $2,854. Two things cause it: the CU-hour rate doubles above 16 CU, and storage alone is $112 a month. A workload that never idles cannot use the feature Neon is priced around.

Connections: the line item that decides serverless

Vector search is usually called from something elastic, and each instance keeps its own pool. At 200 concurrent instances with two connections each you need 400 backends before traffic is interesting.

Supabase publishes both figures per compute size: Micro allows 60 direct connections and 200 through the pooler, Small 90 and 400, Large 160 and 800, XL 240 and 1,000, 4XL 480 and 3,000, so a 400-connection fan-out fits Small only through the pooler. Neon advertises up to 10,000 pooled connections per compute. RDS leaves it to RDS Proxy, and self-hosting leaves it to PgBouncer and to you.

Transaction pooling is not free either: session state, LISTEN, advisory locks held across statements and named prepared statements can break when a backend is reassigned. For a service issuing one SELECT with an ORDER BY embedding <=> per request the trade is invisible; for an ORM leaning on server-side prepared statements it is the bug that appears in week three.

Table 3. What a connection budget costs on each route. Count peak concurrent instances first; average traffic understates the pool by an order of magnitude.

Route Direct connections Pooled connections What it costs Decision rule
Supabase, Micro to 4XL 60 to 480 200 to 3,000 Included in compute Size the pooler against peak fan-out, not average load.
Neon Launch or Scale Per compute, pooled by default Up to 10,000 per compute Included Best fit for one-branch-per-tenant designs.
RDS with Proxy Instance ceiling Proxy pins on demand $0.015 per vCPU-hour Add it the week the first Lambda pool appears.
Self-hosted with PgBouncer Instance ceiling Your configuration Your time Only when someone owns the configuration file.

Where the break-evens actually sit

Scale-to-zero pays until about 2.3 hours a day

Supabase charges $10 a month for each project after the first on Micro compute, with 8 GB of disk. On Neon the same project costs $2.80 in storage plus $0.106 per CU-hour, breaking even at 68 CU-hours a month — about 2.3 hours a day at one CU. A preview environment that runs all day loses that race; a per-tenant database touched twice a week wins it threefold. The threshold moves fast with storage: at 32 GB, Neon storage alone is $11.20, more than the whole Supabase project.

Multi-AZ doubles the bill, not the capacity

Multi-AZ is the honest version of high availability — a synchronous standby, failover in about a minute, and double the instance line for no extra read capacity. At 320 GB that turns $3,179 into $5,970. Supabase's route to the same guarantee is Team at $599 plus a standby instance, near $1,500 at 80 GB: cheaper, and only if you were paying for Team anyway.

Egress rarely decides a database

A RAG answer moves kilobytes: ten chunks is 20 KB per query, so a million queries a month is 20 GB, inside every allowance here. The exception is a workload that also serves files or whole documents; if that is you, the arithmetic is in what multi-region egress actually costs.

Five checks, then a decision

  1. Measure the index. Run pg_relation_size on the index of a production-sized copy; no query tuning makes a 16 GB instance serve 36 GB in 100 milliseconds.
  2. Price the tier, not the landing page. Every route starts under $30 and none of the three cases here costs under $84.
  3. Count peak connections from real fan-out, then compare against the pooler number.
  4. Price the restore, not the backup. Seven-day PITR is $100 a month on Supabase, instant restore about $16 at 80 GB on Neon, included up to provisioned size on RDS, and whatever you built on a droplet.
  5. Decide who answers the pager. Self-hosting at 80 GB saves $459 a month and costs about six engineer hours a month to break even.

Under 50 GB the differences are under $150 a month and the choice belongs to whatever your team already logs into. At 80 GB always-on: RDS single-AZ if the stack is on AWS and you will buy the proxy, Supabase if you want auth and storage on one invoice, self-hosted if someone has run Postgres in production. At 320 GB, buy flat or run it yourself; per-CU billing punishes a database that never sleeps, which is what a vector index is.

The pattern is the same one behind GPU rental: the bill tracks the capacity you keep warm, not the work you do with it, as the GPU break-even comparison finds from the other direction.

If you want the arithmetic ready-made: the 2026 AI Workflow & GPU Cost Playbook collects the run-cost and break-even models published on this site, with an editable calculator that takes your own volumes, for $15 on Gumroad. No vendor paid for its conclusions.

Related reading

Source notes

Prices checked: 2026-12-03. Rates are the published list prices on that day, in US dollars, at 730 hours per month; no reserved instances, savings plans or committed-use discounts are applied. The 0.45 sizing factor and every monthly total are my calculation, not a vendor figure.


Cross-posted from The Index Is the Bill. Signal & Silicon publishes one numbers-first cost breakdown a week: the arithmetic behind GPU rental, managed databases and agent infrastructure, priced at your own volume.

Disclosure: this post contains no affiliate links. Some related posts on vervebrief.com link to vendors such as Vast.ai, and those links may earn a commission.

Top comments (0)