Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 97FFE9F9FE1 for ; Mon, 18 Dec 2006 05:12:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 27422-07 for ; Mon, 18 Dec 2006 05:12:02 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from p15105778.pureserver.info (p15105778.pureserver.info [217.160.133.184]) by postgresql.org (Postfix) with ESMTP id ABB169F9357 for ; Mon, 18 Dec 2006 05:12:01 -0400 (AST) Received: by p15105778.pureserver.info (Postfix, from userid 65534) id 44445440D5; Mon, 18 Dec 2006 10:12:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by server1.proventis.net (Postfix) with ESMTP id 8735FC44098 for ; Mon, 18 Dec 2006 10:07:52 +0100 (CET) Received: from server1.proventis.net ([127.0.0.1]) by localhost (server1.proventis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24387-07 for ; Mon, 18 Dec 2006 10:07:50 +0100 (CET) Received: from [192.168.22.130] (tmarkus.proventis.net [192.168.22.130]) by server1.proventis.net (Postfix) with ESMTP id 08264C44097 for ; Mon, 18 Dec 2006 10:07:50 +0100 (CET) Message-ID: <45865A65.3050207@proventis.net> Date: Mon, 18 Dec 2006 10:07:49 +0100 From: Thomas Markus Organization: proventis GmbH User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: out of memory in backup and restore References: <45826AD7.7050005@proventis.net> <45828ED6.9020501@proventis.net> <9065.1166197474@sss.pgh.pa.us> In-Reply-To: <9065.1166197474@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at proventis.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/244 X-Sequence-Number: 24036 Hi, i tried various ways to backup that db. if i use a separate 'copy table to 'file' with binary' i can export the problematic table and restore without problems. resulting outputfile is much smaller than default output and runtime is much shorter. is there any way to say pg_dump to use a copy command with option 'with binary'? it should be possible with the custom or tar format. i searched the docs and manpage and cant find something. thx Thomas Tom Lane schrieb: > Thomas Markus writes: > >> logfile content see http://www.rafb.net/paste/results/cvD7uk33.html >> > > It looks to me like you must have individual rows whose COPY > representation requires more than half a gigabyte (maybe much more, > but at least that) and the system cannot allocate enough buffer space. > yes, msg is DETAIL: Failed on request of size 546321213. (521mb) > It could be that this is a symptom of corrupted data, if you're certain > that there shouldn't be any such rows in the table. > no > >> kernel is 2.6.15-1-em64t-p4-smp, pg version is 8.1.0 32bit >> > > You really need a 64-bit PG build if you want to push > multi-hundred-megabyte field values around --- otherwise there's just > not enough headroom in the process address space. (Something newer than > 8.1.0 would be a good idea too.) > i cant change the db installation. but thats another problem > regards, tom lane >