why pg_dump eats so much memory?

Started by Cristóvão Dalla Costaover 25 years ago2 messagesgeneral
Jump to latest
#1Cristóvão Dalla Costa
cdallacosta@bigfoot.com

I just noticed that when I run pg_dump to backup my databases it will use
enormous amounts of memory, eating over 70 MB and causing the system to
trash. Then after a while it'll shrink to about 30MB, then grow again, and
repeat the cycle a couple times. The database has 3 tables with araound
350,000 rows, and one table with 1,300,000 rows.

I would like to know the causes of that behaviour, and, hopefully, how I can
fix it. I'm running 7.0.2 on freebsd 4.1.

Thanks!

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Cristóvão Dalla Costa (#1)
Re: why pg_dump eats so much memory?

=?iso-8859-1?Q?Crist=F3v=E3o_Dalla_Costa?= <cdallacosta@bigfoot.com> writes:

I just noticed that when I run pg_dump to backup my databases it will use
enormous amounts of memory,
I would like to know the causes of that behaviour, and, hopefully, how I can
fix it. I'm running 7.0.2 on freebsd 4.1.

Don't use -d or -D options.

regards, tom lane