Re: Unable to pg_dump 8.1.2 - memory alloc error

From: "David Cotter" <davidcotter(at)gmail(dot)com>
To: "Shoaib Mir" <shoaibmir(at)gmail(dot)com>
Cc: airbulb <airbulb(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Unable to pg_dump 8.1.2 - memory alloc error
Date: 2007-02-06 10:05:37
Message-ID: 4c5a5abe0702060205w5d29a3f0x1048804db8d901ab@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks - I tracked down the offending row and deleted it. Just in case
anyone wishes to know how

select * from site where id < 5000 (no error)
select * from site where id < 10000 (no error)
select * from site where id < 15000 (error)
...
select * from site where id = 12344 (no error)
select * from site where id = 12345 (error)
delete from site where id = 12345 (error)

On 2/6/07, Shoaib Mir <shoaibmir(at)gmail(dot)com> wrote:
>
> Hmmm that looks like to me a HW problem causing data corruption. Try doing
> a REINDEX for the database, if possible restart the database server machine
> and then try taking the dump again to see if that works.
>
> But I will recommend doing memory tests for the hardware...
>
> --
> Shoaib Mir
> EnterpriseDB (www.enterprisedb.com)
>
> On 1/31/07, airbulb < airbulb(at)gmail(dot)com> wrote:
> >
> > Hello
> >
> > I get the following error when dumping a pg database with WIN_1252
> > encoding:
> >
> > pg_dump --clean --no-owner dumpfile | gzip
> > >/home/postgres/globalen.dump.gz 2>>./err.out
> >
> > pg_dump: ERROR: invalid memory alloc request size 4294967293
> > pg_dump: SQL command to dump the contents of table "site" failed:
> > PQendcopy() failed.
> > pg_dump: Error message from server: ERROR: invalid memory alloc request
> > size 4294967293
> > pg_dump: The command was: COPY public.site (site_id, url, status,
> > created, "domain", title) TO stdout;
> >
> > Possibly related is a particular query with pgAdmin on same site table
> > with above error yields
> > ERROR: invalid multibyte character for locale
> >
> > I have upgraded from 8.1.2 to 8.1.6 but get the same error.
> >
> > Any help appreciated.
> >
> > Regards,
> > David.
> >
>
>

--
-----------------------------
David Cotter CTO
Alatto Technologies Ltd
-----------------------------
david(dot)cotter(at)alatto(dot)com
m. +353 87 6293698
t. +353 1 2090700 (main)
t. +353 1 2090779 (direct)
f. +353 1 2090707
www.alatto.com
-----------------------------
The new way to mobile browse: http://tribes.cc/demo

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David Martin 2007-02-06 10:58:17 FATAL 2: invalid checksum in control file
Previous Message Shoaib Mir 2007-02-06 09:51:35 Re: Unable to pg_dump 8.1.2 - memory alloc error