Skip to content
dbexplore

Cost optimization

Postgres cost optimization: know what every cluster costs, then fix it safely.

The bill names a cluster. The cause is a query, an index nobody reads, or a standby kept for a plan nobody tested. DBExplore attributes the spend down to the query, proposes the fix with its projected amount modeled, and runs it through the same gate and ledger every other action passes. Autonomy over cost is earned, like autonomy over anything else.

Three reasons a Postgres bill only ever goes up

Postgres cost optimization fails for the same reasons on every cloud, and none of them is that the people involved do not care. The information arrives at the wrong grain, it arrives with nobody who can act on it, and when somebody does act, nothing checks that it worked.

The bill names a cluster, never a query

A cloud invoice stops at the instance. The thing that made the instance that size is a query, an index nobody reads, or a standby kept for a plan nobody tested, and none of those has a line on the bill.

Nobody owns the spend

The database belongs to a platform team, the workload to an application team, and the budget to finance. Each sees one piece, so a cluster can double in cost without a single person being wrong.

A saving is never proven

A right-sizing is announced, the ticket closes, and the next bill is read by somebody else. If the saving did not arrive, nobody is looking at the place where that would show.

What good Postgres FinOps looks like: attribute, act, prove

Three tests to apply to anything that calls itself a database cost tool, ours included. They are the FinOps Framework’s inform, optimize and operate phases, asked from the database side, where the invoice is the least useful document in the room.

Attribute

Every dollar on the bill should be traceable down to a cluster, then to a workload, then to the query that drove it. If the tool stops at the instance, it is a prettier invoice.

Act

A finding should arrive with the change that fixes it, what that change costs in risk, and a path to run it under the same approvals as any other production change. Advice with no action is a backlog.

Prove

A saving should be stated as a projected, modeled number first, then checked against what is measured afterwards, from a bill or from telemetry, with the gap between the two shown rather than hidden. If the number is never checked, it is a forecast.

How DBExplore answers the three tests

Cost is a layer on the telemetry the platform already collects, which is what lets it reach the query rather than stopping at the instance. The same agent, the same read-only role, and the same session history underneath.

A dollar beside every query

Query time, reads and writes are turned into cost per execution and per day on the engine the query actually runs on, so the expensive query is the expensive one.

A rate card you edit

Prices start from the public list for your region and engine. Replace any line with your negotiated rate and every figure on every page follows.

Showback by team, application and cost centre

Clusters and workloads carry owners, so spend rolls up to the people who can change it rather than to whoever holds the account.

An opportunities queue somebody owns

Every leak becomes an item with an owner and a projected (modeled) amount, and the queue is sorted by what is worth doing first.

Savings cases, before and after

A change is recorded as a case: the cost modeled before, the cost modeled after, and the period after that confirmed it or did not.

Budgets with alerts

A budget per team or per cluster, with alerts at thresholds you set, so the conversation happens before the invoice does.

Unit economics

Cost per thousand calls, per gigabyte, per connection-hour or per customer unit you name, so growth in the bill can be told apart from growth in the business.

An open cost-data export

Attributed Postgres cost leaves as CSV or Parquet in a file built around the vocabulary of the open FinOps cost-data format, so your FinOps platform of record can take it without a custom mapping.

From RDS cost optimization to Aurora cost optimization: where each engine leaks

Every engine prices a different thing, so every engine leaks in a different place. RDS charges for the instance you chose; Aurora charges for the I/O your queries did; a serverless platform charges for the hours something kept it awake. One rule about “big instances” finds none of it. The engine is established by fingerprint before any price is applied, and the leaks below are what each one is checked for.

Where each Postgres engine leaks money, and what DBExplore shows for it
Engine Where the money leaks What DBExplore shows
Amazon RDS FinOps page Instances sized for a peak that moved. A Multi-AZ standby billed like the primary. Provisioned IOPS and storage set once and never re-read. The Extended Support surcharge when a major version ages out. The standby, replica, IOPS and support charges, each priced and tied back to the setting that drives it.
Amazon Aurora FinOps page I/O charged by the workload rather than the instance. The I/O-Optimized break-even nobody recalculated. A Serverless floor that never reaches zero. Readers sized to match the writer. The I/O, capacity and reader charges, each priced and tied back to the workload or setting that drives it.
Google Cloud SQL FinOps page Committed-use discounts left unclaimed. High availability doubling the instance. Storage that auto-grows permanently and shrinks only by a manual step that needs downtime. The high availability, storage and commitment charges, each priced and tied back to the setting that drives it.
AlloyDB FinOps page Read pools sized for a launch. Columnar memory reserved for tables nobody scans that way. Storage that grows with data and retention nobody reviewed. The read pool, columnar memory and storage charges, each priced and tied back to the workload that drives it.
Azure Database for PostgreSQL FinOps page Reserved capacity unclaimed. Zone-redundant HA doubling compute. Storage tiers and IOPS provisioned past what is read. The burstable, high availability and reservation charges, each priced and tied back to the setting that drives it.
Neon FinOps page Compute hours from a project that never suspends. Branches nobody deleted holding storage. A minimum compute size on every endpoint that adds up across many small projects and branches. The compute-hour, branch storage and minimum-size charges, each priced and tied back to the project that drives it.
Supabase FinOps page A compute add-on sized for one spike. Disk sized up and never down. The compute add-on and disk charges, each priced and tied back to the usage that drives it.
Citus FinOps page Workers sized for the largest shard. Reference tables copied to every node. A rebalance that never happened after nodes were added. The worker, reference-table and rebalance costs, each priced across the cluster and tied back to the workload that drives it.
TimescaleDB FinOps page Chunks never compressed. Retention policies written but not applied. Continuous aggregates refreshing data nobody queries. The compression, retention and aggregate costs, each priced and tied back to the data that drives it.
CockroachDB FinOps page Reads that cross regions. A replication factor applied to tables that do not need it. Regions holding data that is never read there. The replication, cross-region and node costs, each priced and tied back to the table or statement that drives it.
YugabyteDB FinOps page Tablet splits leaving nodes idle. One replication factor for the whole cluster. Read replicas nobody sends reads to. The node, replication and replica-cluster costs, each priced and tied back to the workload that drives it.
Self-hosted Postgres FinOps page Hosts sized years ago. Bloat consuming disk that is still paid for. Standbys kept for a failover plan nobody tested. Host cost split across clusters and statements, with the part that cannot be attributed shown.

No dollar without provenance

Every figure carries where it came from. The basis is one of three things: the public list price for the region and engine, a line on the rate card you edited, or a charge read from your own bill. Prices carry a source and a check date, and a figure resting on a stale price is flagged rather than shown with a straight face.

Until your bills are read in, every number is modeled and labelled as such. Once they are, the modeled figure sits beside the billed one and the gap between them is shown. A model that drifts from the bill is flagged for a person to correct; it is never quietly nudged to match. That is the difference between a cost tool you can take to finance and one you have to explain to them.

Acting on a cost finding is acting on production. So a right-sizing, an index drop or a retention change goes through the policy gate like any other action, runs on the action plane with a dry-run before and a probe after, and lands in the trust ledger with the dollar delta it claimed and the measurement that later confirmed it. An index that nothing reads is the simplest case of all, and the index advisor is where the write cost of keeping it is already priced.

Four kinds of cost tool, and where each one stops

Nobody compares this with one product. They compare it with a category they already pay for, and each category stops at a different place between the invoice and the query.

How each category of alternative fails structurally
The alternative What it is good at Where it structurally stops
Cloud billing consoles The invoice itself, with tags, budgets and a recommendation or two. Free, authoritative on what was charged, and the only source that is never wrong about the total. The instance is the smallest thing it can see. It cannot say which query made the instance that size, it knows one cloud, and it will never run the fix.
General FinOps platforms All of your clouds in one place, allocated to teams, with commitments and anomalies managed in one workflow. Built for the finance side of the conversation. A database is one line item among thousands. Nothing inside it is visible, so the recommendation stops at "this instance looks big" and lands on an engineer who has to start the investigation from zero.
Single-engine FinOps tools Real depth, down to the query, on the one engine they were written for. The closest thing to this page, for a fleet that is all one thing. Your fleet is not one thing. A tool that understands one engine leaves the rest on the invoice, and most of them still hand the fix back to you.
Postgres monitoring tools Query statistics, plans, indexes and vacuum across every Postgres you run, built by people who know the engine. They measure in milliseconds and gigabytes, never in money. A slow query and an expensive one are often the same query, but nobody is told that, and the saving is never proven against a bill.

Start with the invoice you already have

Pull one month of the bill, sort it by cluster, and take the top three. For each, ask which workload made it that size and who would notice if it were one step smaller. Unused and missing indexes will give you the storage and write cost of the indexes nobody reads, and how Postgres cost works on a fleet sets out what each kind of platform meters. The free calculators turn a few catalog numbers into a runway. That is an afternoon, and it is the afternoon worth keeping.

When the three clusters are forty, the bill is three clouds, and the person who sized them has left, the afternoon becomes a quarter. That is the fleet problem, and the one this page is about. If you own that line from the finance side, the page for FinOps and finance partners is written for you.

The FinOps section

This page is the overview. The FinOps section takes the same loop one step at a time, with sample dashboards, a finder for your platform and the reasoning behind every figure.

Questions about Postgres cost optimization

Where do the prices come from?

From three places, and every figure says which. Public list prices for your region and engine are the starting point. A rate card you edit replaces any line with your negotiated rate. Once your bills are read in, the modeled figures are checked against what was charged and the gap is shown.

Is the saving a real number or an estimate?

It starts as a projected, modeled number and is labelled that way. It is called savings only once the period after the change has been read, from a bill or from telemetry, and confirms the change landed. The difference between the model and the measurement stays visible on the case. A number that drifts from the bill is flagged for a person to correct rather than quietly adjusted.

Does cost optimization change anything on my database by itself?

No. A cost finding goes through the same ladder as every other action: it starts as a recommendation, a person approves it, and it runs behind the fail-closed policy gate with a dry-run before and a verification after. Autonomy over cost is earned per action class, like everything else.

Which engines are covered?

Amazon RDS, Aurora including Serverless, Google Cloud SQL, AlloyDB, Azure Database for PostgreSQL, Neon, Supabase, Citus, TimescaleDB, CockroachDB, YugabyteDB and self-hosted Postgres, each with its own pricing model and its own places to leak.

Can I get the numbers out?

Yes. Attributed cost exports as CSV or Parquet in a file built around the vocabulary of the open cost-data specification (FOCUS) that most FinOps platforms already read, and the same data is available through the API and the MCP server.

Is this built on the FinOps Framework?

The vocabulary and the phases are the FinOps Framework's: inform, optimize, operate. The parts specific to Postgres, from the query up, are ours.

See what your fleet costs, down to the query.

A pilot starts where nothing is allowed to mutate. You get the attribution and the projected (modeled) amounts on your own clusters, and nothing is resized until you have said it may.