Re: Memory exhausted in AllocSetAlloc()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Heinis <postgres(at)mailzone(dot)ch>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Memory exhausted in AllocSetAlloc()
Date: 2001-03-14 16:31:13
Message-ID: 25627.984587473@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Thomas Heinis <postgres(at)mailzone(dot)ch> writes:
>> Just varchars, huh? Weird. What PG version are you running?
>> How many rows in the table?
>
> PG version is 7.0.2, OS is Red Hat Linux 6.2. The table has 614 rows.

The only thing I can think of is that the table has gotten corrupted so
that one or more of the varchar values appears huge --- ie, its length
word claims to be many megabytes instead of the correct value.

You should be able to home in on the corrupted row(s) by elimination:
figure out which rows you can select and which not. You can probably
even select the non-corrupted columns in the bad rows. Once you delete
the bad rows things should be OK again ... though a dump/initdb/reload
might be a good idea in case there are other problems. Did you suffer
a system crash recently?

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message J.H.M. Dassen Ray 2001-03-14 17:07:45 Re: Re: compilation error <segunda parte>
Previous Message Thomas Heinis 2001-03-14 16:17:43 Re: Memory exhausted in AllocSetAlloc()