Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z7PMD-0003MV-FB for pgsql-admin@arkaria.postgresql.org; Tue, 23 Jun 2015 14:39:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z7PMB-000579-WF for pgsql-admin@arkaria.postgresql.org; Tue, 23 Jun 2015 14:39:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z7PK2-0003H5-10 for pgsql-admin@postgresql.org; Tue, 23 Jun 2015 14:37:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z7PJy-0007z1-FM for pgsql-admin@postgresql.org; Tue, 23 Jun 2015 14:37:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t5NEb3lV002019; Tue, 23 Jun 2015 10:37:04 -0400 From: Tom Lane To: sveera cc: pgsql-admin@postgresql.org Subject: Re: pg_dump: Error message from server: lost synchronization with server: got messag e type "d", In-reply-to: <1435069522258-5854831.post@n5.nabble.com> References: <1435069522258-5854831.post@n5.nabble.com> Comments: In-reply-to sveera message dated "Tue, 23 Jun 2015 07:25:22 -0700" Date: Tue, 23 Jun 2015 10:37:03 -0400 Message-ID: <2018.1435070223@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org sveera 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 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin