Re: pgstat_reset_remove_files ignores its argument

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgstat_reset_remove_files ignores its argument
Дата
Msg-id CA+Tgmoa+0F7fnY7v1PZZarK4hd07r48yCbg1R+KSXbzYzdAoVw@mail.gmail.com
обсуждение исходный текст
Ответ на pgstat_reset_remove_files ignores its argument  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: pgstat_reset_remove_files ignores its argument  (Tomas Vondra <tv@fuzzy.cz>)
Re: pgstat_reset_remove_files ignores its argument  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
On Wed, Aug 14, 2013 at 12:13 AM, Jeff Janes <jeff.janes@gmail.com> wrote:
> in 9.3 and 9.4, pgstat_reset_remove_files uses the global variable
> pgstat_stat_directory rather than the argument it is passed, "directory".
> On crash recovery, this means the tmp directory gets cleared twice and the
> permanent pg_stat doesn't get cleared at all.
>
> It seems like the obvious one line change would fix it, but I haven't tested
> it because I don't know how to cause a crash without pg_stat already being
> empty.

I think there are three lines to change, as in the attached patch.

Am I wrong?

...Robert

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] pg_sleep(interval)
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: pgstat_reset_remove_files ignores its argument