Re: Location for pgstat.stat
От | Magnus Hagander |
---|---|
Тема | Re: Location for pgstat.stat |
Дата | |
Msg-id | 486A8300.1000909@hagander.net обсуждение исходный текст |
Ответ на | Re: Location for pgstat.stat (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Location for pgstat.stat
|
Список | pgsql-hackers |
Tom Lane wrote: > Magnus Hagander <magnus@hagander.net> writes: >> Tom Lane wrote: >>> Hmm ... that would almost certainly result in the stats being lost over >>> a system shutdown. How much do we care? > >> Only for those who put it on a ramdrive. The default, unless you >> move/sync it off, would still be the same as it is today. While not >> perfect, the performance difference of going to a ramdrive might easily >> be enough to offset that in some cases, I think. > > Well, what I was wondering about is whether it'd be worth adding logic > to copy the file to/from a "safer" location at startup/shutdown. Oh, I see. I should think more before I answer sometimes :-) Not sure. I guess my own personal concern would be how badly is autovacuum affected by having to start off a blank set of stats? Any other uses I have I think are capable of dealing with reset-to-zero states. //Magnus
В списке pgsql-hackers по дате отправления: