Search Postgresql Archives

Re: pg_xlog keeps growing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Based on my config, what is the max size this directory is expected to grow ? And how can I check whether this recycle/removal is happening fine ?

On Tue, Feb 28, 2017 at 10:08 AM, Michael Paquier <michael.paquier@xxxxxxxxx> wrote:
On Tue, Feb 28, 2017 at 1:20 PM, dhanuj hippie <dhanuj.hippie@xxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux