pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gael Le Mignot <gael@pilotsystems.net>
To: pgsql-performance@postgresql.org
Subject: Re: Memory usage of auto-vacuum
Date: Tue, 12 Jul 2011 17:44:08 +0200
Message-ID: <plop87mxgjjygn.fsf@aoskar.kilobug.org> (raw)
In-Reply-To: <plop87tyavncer.fsf@aoskar.kilobug.org>
References: <plop87tyavncer.fsf@aoskar.kilobug.org>

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



view thread (13+ messages)

Message-ID: <plop87mxgjjygn.fsf@aoskar.kilobug.org>
Permalink:  ../plop87mxgjjygn.fsf@aoskar.kilobug.org/
Also on:    postgresql.org/message-id/plop87mxgjjygn.fsf@aoskar.kilobug.org

 · 

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-performance@postgresql.org
  Cc: gael@pilotsystems.net
  Subject: Re: Memory usage of auto-vacuum
  In-Reply-To: <plop87mxgjjygn.fsf@aoskar.kilobug.org>
  References: <plop87tyavncer.fsf@aoskar.kilobug.org> <plop87mxgjjygn.fsf@aoskar.kilobug.org>

* 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