Re: stats reset during pg_restore?
От | George Pavlov |
---|---|
Тема | Re: stats reset during pg_restore? |
Дата | |
Msg-id | 8C5B026B51B6854CBE88121DBF097A863CD6DC@ehost010-33.exch010.intermedia.net обсуждение исходный текст |
Ответ на | Re: stats reset during pg_restore? (Alvaro Herrera <alvherre@commandprompt.com>) |
Ответы |
Re: stats reset during pg_restore?
|
Список | pgsql-performance |
> These stats are not stored in tables, only in memory and saved to a > special file on disk to be able to preserve it across server > stop/start. > But pg_dump does not make the slightest attempt to save it. > > Also, you can't save it yourself -- while you could save the values it > returns on queries to the stats views, there is no way to feed those > saved values back to the system after a dump/restore. Thanks! Sounds like I just need to query the stats tables and save the output for oofline analysis before I do a dump. Based on how it works it seems that a server crash might lose the in-memory stats data as well? I imagine PITR does not take care of that special file (where is it by, by the way?). I have not worked with replication (yet), but I imagine replica databases will also be agnostic of the master's stats?
В списке pgsql-performance по дате отправления: