Re: HELP!!! The WAL Archive is taking up all space

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: HELP!!! The WAL Archive is taking up all space
Дата
Msg-id 3292747.WpWAdAeQbd@skynet.simkin.ca
обсуждение исходный текст
Ответ на HELP!!! The WAL Archive is taking up all space  (FattahRozzaq <ssoorruu@gmail.com>)
Ответы Re: HELP!!! The WAL Archive is taking up all space  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On Wednesday, December 09, 2015 07:55:09 AM FattahRozzaq wrote:
> archive_mode = on
> archive_command = 'cp -i %p /home/postgres/archive/master/%f'
>
>
> The WAL archive folder is at /home/postgres/archive/master/, right?
> This directory consumes around 750GB of Disk-1.
> Each segment in the /home/postgres/archive/master/ is 16MB each
> There are currently 47443 files in this folder.
>
> If I want to limit the total size use by WAL archive to around 200-400
> GB, what value should I set for the wal_keep_segments,
> checkpoint_segments?

PostgreSQL doesn't clean up files copied by your archive_command. You need to
have a separate task clean those out. PostgreSQL's active wal_keep_segments
etc. are in the data/pg_xlog directory.

Вложения

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

Предыдущее
От: Mirek Svoboda
Дата:
Сообщение: Feature Request: Faceting for full text search
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: HELP!!! The WAL Archive is taking up all space