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 resultsInputs
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.
| Current heap | 0 GB |
|---|---|
| Current indexes | 0 GB |
| 12-month rows | 14,400,000 |
| 36-month rows | 43,200,000 |
| Hot working set | 0 GB |
| Working set / available RAM | 0 % |
| Read IOPS | 400 IOPS |
| Write IOPS | 300 IOPS |
| Data page I/O | 700 IOPS |
| WAL write throughput | 0.2 MB/s |
| Data and WAL throughput | 5.934 MB/s |
| WAL generated per day | 17.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.