Re: pg_dump: ERROR: Memory exhausted in AllocSetAlloc(875574064) - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump: ERROR: Memory exhausted in AllocSetAlloc(875574064)
Date
Msg-id 11362.1115924195@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump: ERROR: Memory exhausted in AllocSetAlloc(875574064)  ("Reid Thompson" <Reid.Thompson@ateb.com>)
Responses Re: pg_dump: ERROR: Memory exhausted in AllocSetAlloc(875574064)
List pgsql-general
"Reid Thompson" <Reid.Thompson@ateb.com> writes:
> Is there any solution to this other than adding memory, or am I
> mis-understanding the error?

> pg_dump: ERROR:  Memory exhausted in AllocSetAlloc(875574064)
> pg_dump: lost synchronization with server, resetting connection

My bet is that this is actually a corrupt-data problem ... unless you
actually have any 875MB fields in your table.  The implication is that
the length word of a variable-width field contains garbage.  More than
likely, the whole tuple is garbaged, but this happens to be the first
visible symptom.

There is plenty of discussion of recovering from data corruption in
the archives, so go have a look.

> v7.2.3 on RHAT 7.3 linux with 128MB RAM.

Might want to think about an update sometime, too ;-)

            regards, tom lane

pgsql-general by date:

Previous
From: mmiranda@americatel.com.sv
Date:
Subject: Re: About Types
Next
From: Tony Caduto
Date:
Subject: Re: Delphi 2005, Postgresql, ZEOS & optimistic locking