Re: pg_dump: Error message from server: lost synchronization with server: got messag e type "d",

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: sveera <sveera(at)oration(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump: Error message from server: lost synchronization with server: got messag e type "d",
Date: 2015-06-23 14:37:03
Message-ID: 2018.1435070223@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

sveera <sveera(at)oration(dot)com> writes:
> I am trying to backup a database products with pg_Dump. The total size of
> the database is 1.6 gb. One of the table in the database is product_image
> which is 1gb in size. When I run the pg_dump on the database the database
> backup fails with this error.

> ##pg_dump: Dumping the contents of table "product_image" failed:
> PQgetCopyData() failed.
> pg_dump: Error message from server: lost synchronization with server:
> got message type "d", length 6036499
> pg_dump: The command was: COPY public.product_image (id, username,
> projectid, session, filename, filetype, filesize, filedata, uploadedon,
> "timestamp") T

Hm. Given that the message type and length seem perfectly reasonable,
I suspect this must actually represent an out-of-memory condition within
pg_dump (*not* on the server end). But you'd have to be running it on a
toy box, or with a rather silly ulimit, for 6MB to be a problem...

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2015-06-23 14:44:43 Re: pg_dump: Error message from server: lost synchronization with server: got messag e type "d",
Previous Message sveera 2015-06-23 14:25:22 pg_dump: Error message from server: lost synchronization with server: got messag e type "d",