Re: WAL FILES

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: WAL FILES
Дата
Msg-id Pine.LNX.4.30.0201081806260.725-100000@peter.localdomain
обсуждение исходный текст
Ответ на WAL FILES  ("Gershon M. Wolfe" <gary.wolfe@lsbc.com>)
Список pgsql-hackers
Gershon M. Wolfe writes:

> I am getting the following DEBUG message
>
>     XLogWrite: new log file created - consider increasing WAL_FILES
>
> What would be a good number of files to shoot for, I am currently
> using the default.  Some of my table are into the Gigabyte level.

This depends on the amount of data modification you do per transaction.

If the transaction that caused this message is a typical work load (and
not just a one-time bulk load, for instance) you can try to raise
WAL_FILES until the message goes away.  I don't have a good formula at
hand, but basically WAL logs everything that you change during a
transaction.

You could perform a typical (long) transaction, hold off on the commit and
check the size of the accumulated logs under $PGDATA/pg_xlog.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: VPATH builds fail
Следующее
От: Peter Eisentraut
Дата:
Сообщение: ECPG warning