Re: Large backup size of pg_dump

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Ertan Küçükoglu <ertan(dot)kucukoglu(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Large backup size of pg_dump
Date: 2026-05-20 13:17:49
Message-ID: ag20ffqZJ_eXWGDl@depesz.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 20, 2026 at 10:17:57AM +0300, Ertan Küçükoglu wrote:
> Hello,
>
> I am using PostgreSQL 18.4 x64 on Windows Server 2022. There is a very
> small single database in the cluster.
>
> There are hourly pg_dump backups scheduled and database backup size is
> around 10GB.

1. pg_dump is not the best choice for backups.
2. When using pg_dump, use at least -Fd, and -jX to make the dumps work
in parallel
3. Check what is using the most space in dump, and compare it with db
4. What exactly do you mean by "BLOB"? What is the actual datatype of
the field?
5. What is `\l+ your_db_name` output from psql?

> I didn't understand about 2.5 times bigger backup sizes than the total
> cluster size. I do not know what to check either. Is there a way for me to
> make the hourly backup size smaller?

Consider compressing it? Or use some backup tool that handles
incremental/differential backups, like, for example, backrest.

depesz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2026-05-20 14:15:46 Re: Large backup size of pg_dump
Previous Message Priancka Chatz 2026-05-20 11:23:09 Re: Large backup size of pg_dump