Memory usage of pg_basebackup...

Started by Mladen Marinovićabout 6 years ago2 messagesgeneral
Jump to latest
#1Mladen Marinović
mladen.marinovic@kset.org

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ć

#2Magnus Hagander
magnus@hagander.net
In reply to: Mladen Marinović (#1)
Re: Memory usage of pg_basebackup...

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 is being 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/