What is Database Size, and how to calculate it?

I got an Exceeding database size limit warning in my Database size usage, which is:
- Included in free plan: 0.5GB
- Average in period: 0.58GB
- Overage in period: 0.08GB


However, I don't really use my database much in the past 3 month, yet the graph shows otherwise, it's increasing each day.

I don't really get what is database size and how to calculate, because I only have 2 table (I have other 2 empty tables), and I check with this:
select
  pg_size_pretty(pg_total_relation_size('table')) as table_size;

and it returns only 160 kB (this is my largest table), so I don't think this is not what database size mean.
image.png
Was this page helpful?