Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7B3D4B5DC0E for ; Tue, 12 Jul 2011 12:44:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 27669-07 for ; Tue, 12 Jul 2011 15:44:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from aoskar.kilobug.org (kilobug.org [62.212.118.231]) by mail.postgresql.org (Postfix) with ESMTP id 219B6B5D80A for ; Tue, 12 Jul 2011 12:44:11 -0300 (ADT) Received: from kilobug by aoskar.kilobug.org with local (Exim 4.72) (envelope-from ) id 1Qgf84-0001os-NK for pgsql-performance@postgresql.org; Tue, 12 Jul 2011 17:44:08 +0200 From: Gael Le Mignot To: pgsql-performance@postgresql.org Subject: Re: Memory usage of auto-vacuum Organization: Pilot Systems References: Mail-Copies-To: nobody X-Revolutionnary-Date: 24 Messidor an 219 de la =?iso-8859-1?Q?R=E9volutio?= =?iso-8859-1?Q?n?= X-PGP-Fingerprint: 1F2C 9804 7505 79DF 95E6 7323 B66B F67B 7103 C5DA Date: Tue, 12 Jul 2011 17:44:08 +0200 In-Reply-To: (Gael Le Mignot's message of "Sat, 09 Jul 2011 09:25:32 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/112 X-Sequence-Number: 44324 Hello, Here is an update on my problem : - the problem was caused by "VACUUM ANALYZE", but by a plain "VACUUM" ; - it was exactly the same with manual and automatic "VACUUM ANALYZE" ; - it was caused by a GIN index on a tsvector, using a very high (10000) statistics target. Setting back the statistics to 1000 reduced the amount of RAM used to a very reasonable amount. The value of 10000 is indeed not very realistic, but I think that would deserve some mention on the documentation, if possible with an estimate of the maximal memory usage for a given statistics target and table size. Do you think it's a good idea, and if so, if that estimate can be reasonably made ? Regards, -- Gaël Le Mignot - gael@pilotsystems.net Pilot Systems - 9, rue Desargues - 75011 Paris Tel : +33 1 44 53 05 55 - www.pilotsystems.net Gérez vos contacts et vos newsletters : www.cockpit-mailing.com