Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VQxsT-0000Hm-Gr for pgsql-admin@arkaria.postgresql.org; Tue, 01 Oct 2013 11:12:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VQxsT-0006Hb-1A for pgsql-admin@arkaria.postgresql.org; Tue, 01 Oct 2013 11:12:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VQxsS-0006HT-03 for pgsql-admin@postgresql.org; Tue, 01 Oct 2013 11:12:28 +0000 Received: from mail.iqbuzz.ru ([95.163.96.206]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VQxsK-0002Li-PD for pgsql-admin@postgresql.org; Tue, 01 Oct 2013 11:12:27 +0000 Received: by mail.iqbuzz.ru (Postfix, from userid 5001) id 05360C09EB; Tue, 1 Oct 2013 15:11:47 +0400 (MSK) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bz-mail X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED,URIBL_SBL autolearn=no version=3.3.1 Received: from [192.168.1.68] (proxy.iqmen.ru [195.210.159.34]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: klochkov@iqbuzz.ru) by mail.iqbuzz.ru (Postfix) with ESMTPSA id 89465C0983; Tue, 1 Oct 2013 15:11:47 +0400 (MSK) Message-ID: <524AAE12.8@iqbuzz.ru> Date: Tue, 01 Oct 2013 15:12:18 +0400 From: Sergey Klochkov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: pgsql-admin@postgresql.org CC: giuseppe.broccolo@2ndquadrant.it Subject: Re: PostgreSQL 9.2 - pg_dump out of memory when backuping a database with 300000000 large objects References: <524A90D1.5000109@iqbuzz.ru> <524AAB93.7070308@2ndquadrant.it> In-Reply-To: <524AAB93.7070308@2ndquadrant.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.9 (/) 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 No, it did not make any difference. And after looking through pg_dump.c and pg_dump_sort.c, I cannot tell how it possibly could. See the stacktrace that I've sent to the list. Thanks. On 01.10.2013 15:01, Giuseppe Broccolo wrote: > Maybe you can performe your database changing some parameters properly: >> >> PostgreSQL configuration: >> >> listen_addresses = '*' # what IP address(es) to listen on; >> port = 5432 # (change requires restart) >> max_connections = 500 # (change requires restart) > Set it to 100, the highest value supported by PostgreSQL >> shared_buffers = 16GB # min 128kB > This value should not be higher than 8GB >> temp_buffers = 64MB # min 800kB >> work_mem = 512MB # min 64kB >> maintenance_work_mem = 30000MB # min 1MB > Given RAM 96GB, you could set it up to 4800MB >> checkpoint_segments = 70 # in logfile segments, min 1, >> 16MB each >> effective_cache_size = 50000MB > Given RAM 96GB, you could set it up to 80GB >> > > Hope it can help. > > Giuseppe. > -- Sergey Klochkov klochkov@iqbuzz.ru -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin