Received: from maia.hub.org (unknown [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AB0B31337B58 for ; Thu, 21 Oct 2010 13:50:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 76028-04 for ; Thu, 21 Oct 2010 16:50:02 +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 E524E1337B50 for ; Thu, 21 Oct 2010 13:50:01 -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 o9LGo07e025980; Thu, 21 Oct 2010 12:50:00 -0400 (EDT) To: Gael Le Mignot cc: pgsql-performance@postgresql.org Subject: Re: Periodically slow inserts In-reply-to: References: <23677.1287672948@sss.pgh.pa.us> Comments: In-reply-to Gael Le Mignot message dated "Thu, 21 Oct 2010 18:07:47 +0200" Date: Thu, 21 Oct 2010 12:50:00 -0400 Message-ID: <25979.1287679800@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/355 X-Sequence-Number: 40773 Gael Le Mignot writes: > Thu, 21 Oct 2010 10:55:48 -0400, you wrote: >>> I think this may be caused by GIN's habit of queuing index insertions >>> until it's accumulated a reasonable-size batch: >>> http://www.postgresql.org/docs/9.0/static/gin-implementation.html#GIN-FAST-UPDATE > So a big work_mem and a regular vacuum would do the tick, I think. Does > auto_vacuum triggers the gin index vacuuming too, or does it require a > manual vacuum ? Autovacuum will handle it too. regards, tom lane