Thread: Memory usage of pg_basebackup...

Memory usage of pg_basebackup...

From
Mladen Marinović
Date:
Hi,

Does anybody know how much RAM does pg_basebackup use and if it depends on the size of the database that the backup is being created?

Regards,
Mladen Marinović

Re: Memory usage of pg_basebackup...

From
Magnus Hagander
Date:
On Wed, Jan 22, 2020 at 11:23 AM Mladen Marinović
<mladen.marinovic@kset.org> wrote:
>
> Hi,
>
> Does anybody know how much RAM does pg_basebackup use and if it depends on the size of the database that the backup
isbeing created? 

pg_basebackup uses very little RAM, as the data received is written to
disk immediately. If you are doing compression it uses a little more,
but still within the "you don't really need to care" range. The RAM
usage is not dependent on the size of the database, it is always that
small.

--
 Magnus Hagander
 Me: https://www.hagander.net/
 Work: https://www.redpill-linpro.com/