pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Cotter <davidcotter@gmail.com>
To: Shoaib Mir <shoaibmir@gmail.com>
Cc: airbulb <airbulb@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Unable to pg_dump 8.1.2 - memory alloc error
Date: Tue, 6 Feb 2007 10:05:37 +0000
Message-ID: <4c5a5abe0702060205w5d29a3f0x1048804db8d901ab@mail.gmail.com> (raw)
In-Reply-To: <bf54be870702060151u4efb6ccdi99b9d32e583e3489@mail.gmail.com>
References: <896477840701311014t21d07275kd2bd5c01b9a92b67@mail.gmail.com>
	<bf54be870702060151u4efb6ccdi99b9d32e583e3489@mail.gmail.com>

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@gmail.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@gmail.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.cotter@alatto.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

view thread (3+ messages)

Message-ID: <4c5a5abe0702060205w5d29a3f0x1048804db8d901ab@mail.gmail.com>
Permalink:  ../4c5a5abe0702060205w5d29a3f0x1048804db8d901ab@mail.gmail.com/
Also on:    postgresql.org/message-id/4c5a5abe0702060205w5d29a3f0x1048804db8d901ab@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: davidcotter@gmail.com, shoaibmir@gmail.com, airbulb@gmail.com
  Subject: Re: Unable to pg_dump 8.1.2 - memory alloc error
  In-Reply-To: <4c5a5abe0702060205w5d29a3f0x1048804db8d901ab@mail.gmail.com>
  References: <896477840701311014t21d07275kd2bd5c01b9a92b67@mail.gmail.com> <bf54be870702060151u4efb6ccdi99b9d32e583e3489@mail.gmail.com> <4c5a5abe0702060205w5d29a3f0x1048804db8d901ab@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox