Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?

From: tv(at)fuzzy(dot)cz
To: "Greg Smith" <greg(at)2ndquadrant(dot)com>
Cc: "Tomas Vondra" <tv(at)fuzzy(dot)cz>, pgsql-performance(at)postgresql(dot)org
Subject: Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?
Date: 2011-05-13 08:44:47
Message-ID: 83c98c67ff4e97ff3f4db785b05dabe7.squirrel@sq.gransy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

> It's not synchronous at all. The clients create a temporary file for
> the statistics collector and move on. The actual statistics don't get
> updated until the statistics collector decides enough time has passed to
> bother, which defaults to at most every 500ms.

Really? I thought the clients send the updates using a socket, at least
that's what I see in backend/postmaster/pgstat.c (e.g. in
pgstat_send_bgwriter where the data are sent, and in PgstatCollectorMain
where it's read from the socket and applied).

But no matter how exactly this works, this kind of stats has nothing to do
with ANALYZe - it's asynchronously updated every time you run a query.

regards
Tomas

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Guillaume Lelarge 2011-05-16 09:02:53 Re: Dump/restore casts
Previous Message Greg Smith 2011-05-13 02:26:03 Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?

Browse pgsql-performance by date

  From Date Subject
Next Message Samuel Gendler 2011-05-13 09:41:58 Re: setting configuration values inside a stored proc
Previous Message Andres Freund 2011-05-13 08:28:15 Re: setting configuration values inside a stored proc