Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A2016632E7C for ; Tue, 8 Jun 2010 14:30:51 -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 31750-02 for ; Tue, 8 Jun 2010 17:30:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id 21780632350 for ; Tue, 8 Jun 2010 14:30:43 -0300 (ADT) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LyS3C-1POOmP3UVK-015trQ; Tue, 08 Jun 2010 19:30:40 +0200 Message-ID: <4C0E7E3E.2070309@2ndquadrant.com> Date: Tue, 08 Jun 2010 13:30:38 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Thomas Kellerer CC: pgsql-admin@postgresql.org Subject: Re: Details about pg_stat_bgwriter References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18bYs5R+lopazlto+RW9aGObr31tklEOtDf6t0 3HQ3cdBTqYdwN5F0AvGnZCEdtaEyJgcnNPZdYFz0qRQ7FIZhfr nLYdeUg/JLXPQnpkCdNP89+i/2dAh7M X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-10 required=5 tests=BAYES_50=0.8, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/72 X-Sequence-Number: 34850 Thomas Kellerer wrote: > If I want to identify a possible bottleneck with the bgwriter, for > what kind of numbers do I need to watch out? You don't much with a single snapshot of pg_stat_bgwriter data. Try saving this instead: select *,now() from pg_stat_bgwriter; And then take another snapshot at least a few hours later, preferably the next day. With two snapshots and timestamps on them, then it's possible to make some sense of the numbers. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us