Re: Postgres stats collector showing high disk I/O

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Postgres stats collector showing high disk I/O
Дата
Msg-id 20100423222803.GC2859@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Postgres stats collector showing high disk I/O  (Justin Pasher <justinp@newmediagateway.com>)
Ответы Re: Postgres stats collector showing high disk I/O  (Justin Pasher <justinp@newmediagateway.com>)
Список pgsql-general
Justin Pasher wrote:

> Agh... I used pg_stats_reset (with an s) when searching for it. I
> ran the function and it returned true, but the stats file only
> shrunk by ~100k (still over 18MB total). Is there something else I
> need to do? Does this mean the file is mostly bloated with bogus
> data that it can't "reset"? I'm guessing I should just try to delete
> the file outright?

Err, yeah, pg_stat_reset only resets the stats for the current database.
You need to reset for all databases, or alternatively, shut down the
server, remove the file, and restart

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-general по дате отправления:

Предыдущее
От: Justin Pasher
Дата:
Сообщение: Re: Postgres stats collector showing high disk I/O
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres stats collector showing high disk I/O