Re: log files

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: log files
Дата
Msg-id 1368649680.63528.YahooMailNeo@web162905.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: log files  (jjurban <jjurban@attglobal.net>)
Ответы Re: log files  (jjurban <jjurban@attglobal.net>)
Список pgsql-novice
jjurban <jjurban@attglobal.net> wrote:
> Amit Langote wrote:

> There are over 5.7 Gigabytes of these files.  This cannot be
> correct.

That depends entirely on your configuration.  In some environments
that would be excessive; in others it might be just right.

> Which of these can I remove?

It is a bad idea to remove any of them yourself.  If you configure
PostgreSQL to keep fewer of them, the unneeded ones according to
your new configuration should get cleaned up fairly quickly.

>> Those are Write Ahead Log (WAL) file segments (16MB each) and
>> are part of PostgreSQL's REDO mechanism.
>> PostgreSQL official documentation on WAL:
>>
>> http://www.postgresql.org/docs/9.2/static/wal.html

> What can I do to avoid generating these monstrous files?

Read the referenced documentation.  Primarily you will be
interested in checkpoint_segments, wal_keep_segments, and settings
related to archiving -- since if archiving is turned on these files
must be kept in the pg_xlog directory until successfully archived.

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Gavin Flower
Дата:
Сообщение: Re: log files
Следующее
От: Jay Riddle
Дата:
Сообщение: Lightning Talk Presentation