Three-year storage for a new PostgreSQL tenant

A new tenant begins with an empty table. The launch forecast is 40,000 rows per day, two indexes, and no automatic retention cap.

Jump to results

Inputs

Table and indexes
bytes
bytes
%
%
bytes
%
Growth and cache
months
%
GB
Disk and WAL workload
queries/s
queries/s
%
bytes

Results

Runs in your browser
Heap and indexes now
0GB
12-month storage
5.04GB
36-month storage
15.12GB

The modeled hot working set fits in the supplied RAM budget.

Table and index growth
Table and index growthHeap and indexes now 0 GB. 12-month storage 5.04 GB. 36-month storage 15.12 GB0 GB7.56 GB15.12 GBNow12 mo36 moHeap + indexesHeap alone
Detailed results
Current heap0 GB
Current indexes0 GB
12-month rows14,400,000
36-month rows43,200,000
Hot working set0 GB
Working set / available RAM0 %
Read IOPS400 IOPS
Write IOPS300 IOPS
Data page I/O700 IOPS
WAL write throughput0.2 MB/s
Data and WAL throughput5.934 MB/s
WAL generated per day17.28 GB

What to try

Start with a baseline that reaches 15.12 GB in three 360-day planning years. Compare early import volume and a faster arrival rate before locking the allocation.

How the estimate works

Heap bytes ≈ rows × (payload + tuple overhead) ÷ fillfactor × (1 + bloat)

The heap estimate includes row overhead, free space from fillfactor, and extra bloat. Index size uses an average entry size, a B-tree overhead factor, and the same bloat factor. Use measured relation sizes to calibrate these estimates when available.

A forecast month is 30 days. When a retention period and a positive arrival rate are set, future rows are capped at arrivals within that retention horizon. The current size uses the supplied row count. Forecast points assume pruning is effective by that point.

Read IOPS comes from uncached page touches. Page I/O assumes 8 KiB pages and a steady write rate. WAL bandwidth uses bytes generated per write. Data page throughput and WAL throughput are added. A WAL segment retention policy, TOAST, maintenance spikes, and replica amplification need separate sizing.

Frequently asked questions

Why does the empty new-tenant table estimate start at zero?

The model only grows from rows and average bytes per row. A real empty relation can still allocate metadata and index pages.

Should launch backfills count in daily tenant growth?

Enter a one-time backfill as opening rows at the start of the forecast. Use daily growth for the repeatable arrival rate afterward.

Open Database storage & IOPS calculator