]> granicus.if.org Git - postgresql/commit
Patch reverted because of random buildfarm failures:
authorBruce Momjian <bruce@momjian.us>
Tue, 30 May 2006 02:35:39 +0000 (02:35 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 30 May 2006 02:35:39 +0000 (02:35 +0000)
commite8ea69e3fa3abac16e2da9ac4e9167c54f167697
tree8829c5bdd56e6b2543c34a09749003f88fe58e83
parent63cb35c41c62ffab5749eeb81105b78beacef3f9
Patch reverted because of random buildfarm failures:

---------------------------------------------------------------------------

Delay write of pg_stats file to once every five minutes, during
shutdown, or when requested by a backend:

It changes so the file is only written once every 5 minutes (changeable
of course, I just picked something) instead of once every half second.
It's still written when the stats collector shuts down, just as before.
And it is now also written on backend request. A backend requests a
rewrite by simply sending a special stats message. It operates on the
assumption that the backends aren't actually going to read the
statistics file very often, compared to how frequent it's written today.

Magnus Hagander
src/backend/postmaster/pgstat.c
src/include/pgstat.h