Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting? - Mailing list pgsql-performance

From tv@fuzzy.cz
Subject Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?
Date
Msg-id 83c98c67ff4e97ff3f4db785b05dabe7.squirrel@sq.gransy.com
Whole thread Raw
In response to Re: [ADMIN] since when has pg_stat_user_indexes.idx_scan been counting?  (Greg Smith <greg@2ndquadrant.com>)
List 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


pgsql-performance by date:

Previous
From: Andres Freund
Date:
Subject: Re: setting configuration values inside a stored proc
Next
From: Samuel Gendler
Date:
Subject: Re: setting configuration values inside a stored proc