Re: General queston on getting rid of unused WAL files

Поиск
Список
Период
Сортировка
От Benjamin Krajmalnik
Тема Re: General queston on getting rid of unused WAL files
Дата
Msg-id F4E6A2751A2823418A21D4A160B6898892B7F0@fletch.stackdump.local
обсуждение исходный текст
Ответ на Re: General queston on getting rid of unused WAL files  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
It is set to 1024 (I had set it to that level just in case it was needed
due to a peak in workload), and presently I have 2121 WAL files.
Thanks for the info - just reduced it to 256, and will go form there.


-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Tuesday, January 08, 2013 7:17 PM
To: Benjamin Krajmalnik
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] General queston on getting rid of unused WAL files

"Benjamin Krajmalnik" <kraj@servoyant.com> writes:
> Looking at pg_xlogs, I see that postgres is sequentially reusing all
> of the available WAL files, while looking at the log file, it is
> recycling approximately 70-80 files every checkpoint, but it is not
> removing any files.

[ squint... ]  It should be removing those files until it gets under
approximately 2 * checkpoint_segments WAL files.  So, what have you got
checkpoint_segments set to?

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: General queston on getting rid of unused WAL files
Следующее
От: wangxvwang
Дата:
Сообщение: How can i get the listed columns which mentioned in a update command in a trigger ?