Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B3226B5DCC0 for ; Tue, 30 Aug 2011 16:21:42 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 29842-01-7 for ; Tue, 30 Aug 2011 19:21:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 55390B5DC5D for ; Tue, 30 Aug 2011 16:21:22 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p7UJLKmw025154; Tue, 30 Aug 2011 15:21:20 -0400 (EDT) To: "Lampa" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6186: out of memory while analyze In-reply-to: <201108301120.p7UBKKoJ094519@wwwmaster.postgresql.org> References: <201108301120.p7UBKKoJ094519@wwwmaster.postgresql.org> Comments: In-reply-to "Lampa" message dated "Tue, 30 Aug 2011 11:20:20 +0000" Date: Tue, 30 Aug 2011 15:21:20 -0400 Message-ID: <25153.1314732080@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201108/197 X-Sequence-Number: 31009 "Lampa" writes: > Trying analyze table (ANALYZE TABLE table or VACUUM ANALYZE table) with > 3051316 rows (displayed size 2521MB in \dt+) What have you got maintenance_work_mem set to? shared_buffers might also be interesting. regards, tom lane