| От | Tomas Vondra |
|---|---|
| Тема | Re: pgstat_reset_remove_files ignores its argument |
| Дата | |
| Msg-id | 520E81E7.7040103@fuzzy.cz обсуждение исходный текст |
| Ответ на | Re: pgstat_reset_remove_files ignores its argument (Robert Haas <robertmhaas@gmail.com>) |
| Список | pgsql-hackers |
On 16.8.2013 21:38, Robert Haas wrote: > 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 I think the patch is OK. Tomas
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера