Re: pg_xlog keeps growing

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: dhanuj hippie <dhanuj(dot)hippie(at)gmail(dot)com>
Cc: Rob Sargent <robjsargent(at)gmail(dot)com>, PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_xlog keeps growing
Date: 2017-02-28 04:38:07
Message-ID: CAB7nPqQdJAQ0F8O01tJL3ZvVKjmRM_n6qHP0kcxX_bXyj4__ew@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Feb 28, 2017 at 1:20 PM, dhanuj hippie <dhanuj(dot)hippie(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-02-28 05:14:33 Re: Shared WAL archive between master and standby: WALs not always identical
Previous Message Tom Lane 2017-02-28 04:37:49 Re: cpu hight sy% usage