Re: pg_dump on older version of postgres eating huge amounts of memory

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Steve Krall <swalker(at)iglou(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump on older version of postgres eating huge amounts of memory
Date: 2004-03-19 01:06:32
Message-ID: 20040319010632.GA5296@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 18, 2004 at 07:37:54PM -0500, Steve Krall wrote:
>
> I'm in a bit of a bad spot. We have a number of remotely deployed
> postgres servers. We are very happy with the depenability of postgres,
> but have recently run into a problem with pg_dump in SOME of the servers.
>
> When doing a pg_dump databasename > file.dmp pg_dump eats up all the
> memory, and is eventually killed because it takes
> up a huge amount of memory. The dump file is always 0 bytes. It works
> perfectly fine on our other server.

The only reason I can remember pg_dump running out of memory was when
using the -d or -D options on large tables. This used to be an issue
but has long since been fixed.

If this is the problem, you can use a 7.4 pg_dump against a 7.1
database, the output migh not be reloadable into a 7.1 DB though.

Or don't use -d or -D.

Or this is not the problem at all...

Hope this helps,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> If the Catholic church can survive the printing press, science fiction
> will certainly weather the advent of bookwarez.
> http://craphound.com/ebooksneitherenorbooks.txt - Cory Doctorow

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-03-19 02:38:09 Re: pg_dump on older version of postgres eating huge amounts of memory
Previous Message Steve Krall 2004-03-19 00:37:54 pg_dump on older version of postgres eating huge amounts of memory