Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YW54P-0005rM-PR for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Mar 2015 15:30:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YW54O-0002os-Kv for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Mar 2015 15:30:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YW54G-0002Ye-Uj for pgsql-bugs@postgresql.org; Thu, 12 Mar 2015 15:30:37 +0000 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YW549-0006Y2-NS for pgsql-bugs@postgresql.org; Thu, 12 Mar 2015 15:30:32 +0000 Received: by wghk14 with SMTP id k14so17213745wgh.3 for ; Thu, 12 Mar 2015 08:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=PQenlmtVzt20SZBokygkJuR3YvCMbTL3wA0Iqcc0AiY=; b=STH7yPgcwHqe0QUhnPNhyuygKUAnhX4yEvImg6thIlmMfpm1/jnfRAJerROcVJOrNA fg2b3TbAJMY/sStMfO+MhmAvb/X9eoKHkhtx55J1X/o24knDg0LK+4RJFxCJ92Nu53Xd sNpoZMiHNWfXUsLGRe6mwWEgPJTTn5bw6+dYizs89zRJqrIPm9dCTnb6kPajs1ryd3BK hM4WY8X+Lb9RXxGTjwlH8JsiQze4rjoq64MPVf2JOwT9aU65aal/sJ86Q6CFt4pDkb0G QuAythWCED+uYyYbdJvzgXsnujNy4QKcgreLcbZ2YExYUeG35OvOxkuIEH7cNtFVhNMN lO2A== X-Received: by 10.180.72.175 with SMTP id e15mr15956611wiv.28.1426174228871; Thu, 12 Mar 2015 08:30:28 -0700 (PDT) Received: from [192.168.1.107] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id fo9sm29879475wib.16.2015.03.12.08.30.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2015 08:30:27 -0700 (PDT) Message-ID: <5501B10E.8020408@iki.fi> Date: Thu, 12 Mar 2015 16:30:22 +0100 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0 MIME-Version: 1.0 To: wnordmann@gmx.de, pgsql-bugs@postgresql.org Subject: Re: BUG #12850: ANALYZE of big table is taking extreemly much memory References: <20150311163510.4035.18336@wrigleys.postgresql.org> In-Reply-To: <20150311163510.4035.18336@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 03/11/2015 05:35 PM, wnordmann@gmx.de wrote: > The following bug has been logged on the website: > > Bug reference: 12850 > Logged by: walter nordmann > Email address: wnordmann@gmx.de > PostgreSQL version: 9.4.1 > Operating system: Ubuntu 14.4 LTS > Description: > > Vacuuming a really big table (139.000.000 records, 66GB tablespace, one > GIN-INDEX of 135 GB!) is consuming extreemly much memory. Much, much more > then maintenance_work_mem (2GB). at this time about 85 GB of virt mem. > > see post "autovacuum worker running amok - and me too" at postgresql-general > or ask me for more data. this form is to small for it. To be precise, the memory leak is in VACUUM of GIN indexes, not ANALYZE. It was introduced by the 9.4 GIN changes to store the posting lists in a compressed form. Fixed, thanks for the report! - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs