pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: wnordmann@gmx.de
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12850: ANALYZE of big table is taking extreemly much memory
Date: Thu, 12 Mar 2015 16:30:22 +0100
Message-ID: <5501B10E.8020408@iki.fi> (raw)
In-Reply-To: <20150311163510.4035.18336@wrigleys.postgresql.org>
References: <20150311163510.4035.18336@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (2+ messages)

Message-ID: <5501B10E.8020408@iki.fi>
Permalink:  ../5501B10E.8020408@iki.fi/
Also on:    postgresql.org/message-id/5501B10E.8020408@iki.fi

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: hlinnaka@iki.fi, wnordmann@gmx.de
  Subject: Re: BUG #12850: ANALYZE of big table is taking extreemly much memory
  In-Reply-To: <5501B10E.8020408@iki.fi>
  References: <20150311163510.4035.18336@wrigleys.postgresql.org> <5501B10E.8020408@iki.fi>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox