powa-team / pg_stat_kcache

Gather statistics about physical disk access and CPU consumption done by backends.
Other
214 stars 24 forks source link

Write the statistics file at the right place #5

Closed gleu closed 10 years ago

gleu commented 10 years ago

It should be in whichever directory stats_temp_directory points to while PostgreSQL is running.

When PostgreSQL is stopped, the file should be in global if the PostgreSQL release is less than 9.3, and in pg_stat if the release is 9.3 or bigger.

frost242 commented 10 years ago

Fixed in commit 5cb3e2e10320c2ad3fedfe93a939db9d484fd2ca

There's no need to use stats_temp_directory, pgsk does not store anything on disk while running.