Re: Megabytes of stats saved after every connection

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Megabytes of stats saved after every connection
Дата
Msg-id 20050729010833.GL6807@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Megabytes of stats saved after every connection  ("Guy Rouillier" <guyr@masergy.com>)
Список pgsql-general
On Thu, Jul 28, 2005 at 05:48:21PM -0500, Guy Rouillier wrote:
> Jan Wieck wrote:
>
> > Then again, the stats file is only written. There is nothing that
> > actually forces the blocks out. On a busy system, one individual stats
> > file will be created, written to, renamed, live for 500ms and be
> > thrown away by the next stat files rename operation. I would assume
> > that with a decent filesystem and appropriate OS buffers, none of the
> > data blocks of most stat files even hit the disk. I must be missing
> > something.
>
> (From someone who is at best semi-informed).. Unless battery-backed
> cache is available, we are advised to run with fsync enabled.  Wouldn't
> that affect the stats files as well?

The stats file is dispensable.  In fact, it has been proposed that on
crash recovery the stat file should be deleted.

--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"Y eso te lo doy firmado con mis lágrimas" (Fiebre del Loco)

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

Предыдущее
От: Phil Endecott
Дата:
Сообщение: Re: Megabytes of stats saved after every connection
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Select for update