pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nicolas Zin <nicolas.zin@savoirfairelinux.com>
To: pgsql-admin@postgresql.org
Subject: select * from pg_stat_bgwriter slow
Date: Tue, 14 May 2013 16:57:06 -0400
Message-ID: <5192A522.3040002@savoirfairelinux.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi,

we have a postgresql 9.0, I setup collectd to gather some information.
It frequently ask the database about the bgwriter state by requesting
"select * from pg_stat_bgwriter" (among other stats).
It seems that this requets takes 6-7s to answer and in the log we got
"pgstat timeout"
Note: The database is constantly loaded with insert (but not overloaded).

Does someone have an idea why such request can take so long to answer. I
was thinking bgwriter stats is just a matter of picking global info in
memory. Can it be due to locks of some sort ?

Cordialy,


Nicolas Zin


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



Message-ID: <5192A522.3040002@savoirfairelinux.com>
Permalink:  ../5192A522.3040002@savoirfairelinux.com/
Also on:    postgresql.org/message-id/5192A522.3040002@savoirfairelinux.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: nicolas.zin@savoirfairelinux.com
  Subject: Re: select * from pg_stat_bgwriter slow
  In-Reply-To: <5192A522.3040002@savoirfairelinux.com>

* 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