Re: [GENERAL] pg_xlog keeps growing - Mailing list pgsql-general

From Michael Paquier
Subject Re: [GENERAL] pg_xlog keeps growing
Date
Msg-id CAB7nPqQdJAQ0F8O01tJL3ZvVKjmRM_n6qHP0kcxX_bXyj4__ew@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] pg_xlog keeps growing  (dhanuj hippie <dhanuj.hippie@gmail.com>)
Responses Re: [GENERAL] pg_xlog keeps growing  (dhanuj hippie <dhanuj.hippie@gmail.com>)
List pgsql-general
On Tue, Feb 28, 2017 at 1:20 PM, dhanuj hippie <dhanuj.hippie@gmail.com> wrote:
> So does it work like - it can go upto 16MB*1024 times which is 16GB, and
> then this will be cleaned up automatically ?

On a standby each time a restart point is created the oldest segments
are either recycled or removed, wal_keep_segments retains more of
that. You can look at KeepLogSeg() in
src/backend/access/transam/xlog.c if you want..
--
Michael


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] [ADMIN] cpu hight sy% usage
Next
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Shared WAL archive between master and standby: WALs notalways identical