Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id B58892E0030; Fri, 23 May 2008 09:48:45 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 28709-04; Fri, 23 May 2008 09:48:37 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by developer.postgresql.org (Postfix) with ESMTP id 71B772E002D; Fri, 23 May 2008 09:48:42 -0300 (ADT) thread-index: Aci8024Trylr48vUQfeiHjOl9vliEA== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 Received: from [10.0.1.203] ([207.219.199.245]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 23 May 2008 08:49:18 -0400 Message-ID: <4836BD02.3010008@enterprisedb.com> Date: Fri, 23 May 2008 13:48:02 +0100 From: "Heikki Linnakangas" Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.12 (X11/20080420) MIME-Version: 1.0 To: "Amit jain" Cc: , , Subject: Re: [HACKERS] Error while executing pg_dump "invalid memory alloc request size 4294967293" References: In-Reply-To: Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 May 2008 12:49:25.0046 (UTC) FILETIME=[6E0BFD60:01C8BCD3] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/195 X-Sequence-Number: 29279 Amit jain wrote: > Hello All, > > We are using postgresql version 8.1 and our database size is 7gb. Ram Size > is 2 GB. > > while trying to take backup through pg_dump i am getting following error. > > oka97: pg_dump amtdb > amtdb.out > pg_dump: ERROR: invalid memory alloc request size 4294967293 > pg_dump: SQL command to dump the contents of table "atbs2_logs" failed: > PQendcopy() failed. > pg_dump: Error message from server: ERROR: invalid memory alloc request > size 4294967293 > pg_dump: The command was: COPY public.atbs2_logs (sno, request_time, msisdn, > phone_make, error_code, error_desc, reply_message, request_query, > responce_time, request_type) TO stdout; > > When I tried to take a single table backup i.e is mentioned in the error > named* "public.atbs2_logs" then again getting following error. > * > > pg_dump: SQL command failed > pg_dump: Error message from server: server closed the connection > unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > pg_dump: The command was: FETCH 100 FROM _pg_dump_cursor > > > So we are unable to take backup , we have tried the vacuum and reindex but > not of any use. It seems to me that you have corrupted data in that table for some reason, perhaps bad hardware? I bet that a simple "SELECT * FROM atbs2_logs" will fail as well. Which server version is this exactly? 8.1.what? How far did the pg_dump get before the crash? Is there any output at all? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com