Re: pg_dump failes due to invalid memory request

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Morgan Kita" <mkita(at)verseon(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: pg_dump failes due to invalid memory request
Date: 2005-09-02 04:18:07
Message-ID: 10354.1125634687@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Morgan Kita" <mkita(at)verseon(dot)com> writes:
> I just tried to call pg_dump for my database this evening, and it fails on one of my tables.
> The error it gives in the log is:
> ERROR: invalid memory alloc request size 3221230573

This looks like a pretty standard data-corruption situation: you've got
a variable-width field somewhere with a ridiculous value in its length
word. If you trawl the PG mail list archives you'll find plenty of
examples and discussions about how to triangulate on the bad row(s) and
get rid of them.

> Now the only thing I can think of is that this particular table has 2
> custom data types that are both toastable.

[ raised eyebrow... ] Then it could also be a symptom of a garden
variety bug in your custom datatype code. Have you tried getting
a stack trace from errfinish() to see exactly where the complaint
is being raised?

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Jessica Broomans 2005-09-02 08:47:17 howto to do an automated backup on windows xp?
Previous Message Morgan Kita 2005-09-02 04:06:12 pg_dump failes due to invalid memory request