Re: Old WAL files under pg_xlog not getting delete

Поиск
Список
Период
Сортировка
От Ron
Тема Re: Old WAL files under pg_xlog not getting delete
Дата
Msg-id ff52b4a5-5232-abec-f148-a223b048f138@gmail.com
обсуждение исходный текст
Ответ на Re: Old WAL files under pg_xlog not getting delete  (rammohan ganapavarapu <rammohanganap@gmail.com>)
Ответы Re: Old WAL files under pg_xlog not getting delete  (rammohan ganapavarapu <rammohanganap@gmail.com>)
Список pgsql-admin
On 1/30/19 9:09 PM, rammohan ganapavarapu wrote:
Thank you all, but irrespective of count i have why is it keeping old files?

Because you're telling it to!!

max_wal_size= 1GB
wal_keep_segments=500

and how is it using those files? Is there any processes that can flush or remove those files?

Change the parameter and restart the server...


On Wed, Jan 30, 2019, 4:11 PM David G. Johnston <david.g.johnston@gmail.com wrote:
On Wed, Jan 30, 2019 at 5:00 PM Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> Hmm ... I would recommend to keep the xlog files in a subdir, not the
> root of the filesystem.

They are in a subdir (under /opt/pgdata), and the OP seems likely to
have omitted the self/parent hidden directories during his check as
well.  Plus per the docs we actually expect 501 so there isn't a need
to account for 6 extra, just 5.

Dave


--
Angular momentum makes the world go 'round.

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

Предыдущее
От: rammohan ganapavarapu
Дата:
Сообщение: Re: Old WAL files under pg_xlog not getting delete
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: Old WAL files under pg_xlog not getting delete