Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCc8P-0000DN-Dq for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Mar 2013 20:37:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCc8O-0000zH-TK for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Mar 2013 20:37:20 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCc8O-0000zC-BP for pgsql-bugs@postgresql.org; Mon, 04 Mar 2013 20:37:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCc8M-00065n-Ka for pgsql-bugs@postgresql.org; Mon, 04 Mar 2013 20:37:19 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r24KbFet017114; Mon, 4 Mar 2013 15:37:15 -0500 (EST) From: Tom Lane To: s-morita@beingcorp.co.jp cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7914: pg_dump aborts occasionally In-reply-to: References: Comments: In-reply-to s-morita@beingcorp.co.jp message dated "Mon, 04 Mar 2013 11:23:17 +0000" Date: Mon, 04 Mar 2013 15:37:14 -0500 Message-ID: <17113.1362429434@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org s-morita@beingcorp.co.jp writes: > I encountered a strange error during pg_dump as below: > ---- > pg_dump: Dumping the contents of table "t_file_data" failed: PQgetCopyData() > failed. > pg_dump: Error message from server: lost synchronization with server: got > message type "d", length 21861 Hm. Can you create a reproducible test case for this? > I think that pqCheckInBufferSpace() should be called only when inBuffer is > left-justified like this: > 1432: if (conn->inStart == 0 && pqCheckInBufferSpace(conn->inCursor + > (size_t) msgLength - 4, I think changing that code that way would break the considerations mentioned in pqParseInput3; nor is it clear why this would help, anyway. It doesn't seem likely that the buffer is so large that it can't be enlarged by another 20K. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs