Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4569564FFDC for ; Wed, 6 Aug 2008 09:21:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74464-08 for ; Wed, 6 Aug 2008 09:21:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by postgresql.org (Postfix) with ESMTP id 2289E64FF2F for ; Wed, 6 Aug 2008 09:21:16 -0300 (ADT) Received: by fg-out-1718.google.com with SMTP id 16so2291522fgg.23 for ; Wed, 06 Aug 2008 05:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=IlOy7v8DTVCIN+P4lxvBfSYvwKfgIfpLMQsgodk8hG8=; b=XjXhKpd1R4jehFar/jSVod3HUrspbJdEYmM7ax+se9XVXHKxKUCFH1oTZHL0xnGull Kf9xzlGSyXDTFfXHBXnPXixknQBXkOMqlklzmt6GLctMTjKY8x/gEXSkhaB+6I7oOE8K X6IRgN5HRHSnGdhkPQ+Os3lwoIurSqY+82KFA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Nk6u21ZpYx1LnkpYjZNGsaTeIR+29/y/kUv9MR8KuunoAp/sxZMYhFm2hrKUEEk/DL CJGJrhNuAAO1VOqcaO46WW0C8pHxycNejFoCHTJb8nKW1QlHrbHrbcIY4mjsJaC3JAmv c0/LLZzWXXpq5JGaH+sm+B8LVjgyKFgqaDP8w= Received: by 10.86.66.11 with SMTP id o11mr762706fga.25.1218025275257; Wed, 06 Aug 2008 05:21:15 -0700 (PDT) Received: by 10.86.35.9 with HTTP; Wed, 6 Aug 2008 05:21:15 -0700 (PDT) Message-ID: <162867790808060521wf53ac9aue9125348ec4a15d4@mail.gmail.com> Date: Wed, 6 Aug 2008 14:21:15 +0200 From: "Pavel Stehule" To: "Marcin Citowicki" Subject: Re: pg_dump error - out of memory, Failed on request of size 536870912 Cc: pgsql-performance@postgresql.org In-Reply-To: <48997C5F.6030702@m4n.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48997383.3040704@m4n.nl> <48997C5F.6030702@m4n.nl> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/17 X-Sequence-Number: 30898 Hello you have some data files broken. try to use http://svana.org/kleptog/pgsql/pgfsck.html - but DO DATABASE CLUSTER FILES BACKUP BEFORE. pgfsck doesn't support 8.3, but it can help you to search currupted rows. Then you have remove these rows, thats all. Later check your hardware - probably your server has problems with memory or controller. regards Pavel Stehule 2008/8/6 Marcin Citowicki : > Hello, > > I forgot to add - all those 'out of memory' errors happen when backup db is > trying to create index. Every 'CREATE INDEX' operation is followed by 'out > of memory' error. > Thanks! > > Marcin > > > Marcin Citowicki wrote: >> >> Hello, >> >> We have a bit of a problem with the daily db backup. At the moment the >> backup db size is half of the main db, and we have the following errors in >> the log file: >> >> ERROR: out of memory >> DETAIL: Failed on request of size 536870912 >> >> (There's a bunch of those.) >> >> There were some 'permission denied for language c' errors earlier in the >> log, but then the backup continued for a while. >> >> This is the command we're running: >> >> pg_dump -c -h $DB_HOST -U $DB_USER $DB_NAME | PGOPTIONS='-c >> maintenance_work_mem=1500MB -c sort_mem=64MB' >> psql --quiet -U $DB_DUMP_USER -h $DB_DUMP_HOST $DB_DUMP_NAME; >> >> Both databases (main and backup) are Postgres 8.3. >> >> I'd appreciate any suggestions on how to fix this problem. Also, if you >> have a better idea on running a daily backup please let me know. >> Thanks! >> >> Marcin > > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance > >