pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unable to pg_dump 8.1.2 - memory alloc error
3+ messages / 3 participants
[nested] [flat]

* Unable to pg_dump 8.1.2 - memory alloc error
@ 2007-01-31 18:14 airbulb  <airbulb@gmail.com>
  2007-02-06 09:51 ` Re: Unable to pg_dump 8.1.2 - memory alloc error Shoaib Mir <shoaibmir@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: airbulb @ 2007-01-31 18:14 UTC (permalink / raw)
  To: pgsql-admin

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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Unable to pg_dump 8.1.2 - memory alloc error
  2007-01-31 18:14 Unable to pg_dump 8.1.2 - memory alloc error airbulb  <airbulb@gmail.com>
@ 2007-02-06 09:51 ` Shoaib Mir <shoaibmir@gmail.com>
  2007-02-06 10:05   ` Re: Unable to pg_dump 8.1.2 - memory alloc error David Cotter <davidcotter@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Shoaib Mir @ 2007-02-06 09:51 UTC (permalink / raw)
  To: airbulb <airbulb@gmail.com>; +Cc: pgsql-admin

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.
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Unable to pg_dump 8.1.2 - memory alloc error
  2007-01-31 18:14 Unable to pg_dump 8.1.2 - memory alloc error airbulb  <airbulb@gmail.com>
  2007-02-06 09:51 ` Re: Unable to pg_dump 8.1.2 - memory alloc error Shoaib Mir <shoaibmir@gmail.com>
@ 2007-02-06 10:05   ` David Cotter <davidcotter@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: David Cotter @ 2007-02-06 10:05 UTC (permalink / raw)
  To: Shoaib Mir <shoaibmir@gmail.com>; +Cc: airbulb <airbulb@gmail.com>; 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@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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-02-06 10:05 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 18:14 Unable to pg_dump 8.1.2 - memory alloc error airbulb  <airbulb@gmail.com>
2007-02-06 09:51 ` Shoaib Mir <shoaibmir@gmail.com>
2007-02-06 10:05   ` David Cotter <davidcotter@gmail.com>

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