pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: himanshu.joshi <himanshu.joshi@orkash.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem in taking the database dump
Date: Tue, 18 Sep 2012 10:03:28 -0400
Message-ID: <14857.1347977008@sss.pgh.pa.us> (raw)
In-Reply-To: <50583784.9000100@orkash.com>
References: <50583784.9000100@orkash.com>

"himanshu.joshi" <himanshu.joshi@orkash.com> writes:
>    I am facing a strange problem while taking dump of a postgres 
> database using pg_dump.
> whenever I start the pg_dump command to take the backup of that 
> particular database, it stops within few minutes with the below 
> mentioned error:

> *[root@s8-msd-2 bin]# ./pg_dump -Upostgres pdc_uima_dummy > 
> /hdd2-1/pdc_uima_dummy_108_18092012.sql
> pg_dump: SQL command failed
> pg_dump: Error message from server: ERROR:  invalid memory alloc request 
> size 18446744073709551613
> pg_dump: The command was: COPY public.object_data (id, wkb_geometry, 
> obj_type_id, obj_beginoffset, obj_endoffset, source_id, sentence_id, 
> last_mod_date, obj_norm_value, obj_text, entity_name, frequency) TO 
> stdout;*

This looks like a data corruption issue -- that is, there's some row in
that table that contains a damaged variable-width field, such that the
system is computing a silly value for the width of the field.  You need
to find and remove the damaged row(s).

			regards, tom lane




view thread (2+ messages)

Message-ID: <14857.1347977008@sss.pgh.pa.us>
Permalink:  ../14857.1347977008@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14857.1347977008@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, himanshu.joshi@orkash.com
  Subject: Re: Problem in taking the database dump
  In-Reply-To: <14857.1347977008@sss.pgh.pa.us>

* 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