From: Joshua D. Drake <jd@commandprompt.com>
To: Mark Steben <mark.steben@drivedominion.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: amount of WAL logs larger than expected
Date: Mon, 9 May 2016 11:27:43 -0700
Message-ID: <5730D69F.3030208@commandprompt.com> (raw)
In-Reply-To: <CADyzmywE6B6SXnDxofNNVGagnH8wj0+44f09_QiJ7pzPDP0a=w@mail.gmail.com>
References: <CADyzmywE6B6SXnDxofNNVGagnH8wj0+44f09_QiJ7pzPDP0a=w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On 05/09/2016 11:23 AM, Mark Steben wrote:
> Good afternoon
>
> We run postgres 9.2.12 and run vacuum on a 540GB database.
>
> I've attached a 'show all' for your reference. With CHECkPOINT_SEGMENTS
> set at 128
> and CHECKPOINT_COMPLETION_TARGET set at 0.9 I wouldn't expect the number
> of logs in pg_xlog to creep much over 400. But when we run vacuum, the
> number can climb to over 5000 and threatens to blow out on space. Is
> there something else I should be looking at causing this unexpected
> number of logs?
>
> Our server is also master for a slony1.2.2.3 slave and also to a hot
> standby server.
Are you archiving to your hot standby or streaming? If you are
archiving, you may not be returning a proper success code and thus
postgresql is keeping logs.
Also, you are well behind production (9.2.16) and there are
*significant* bug fixes in the release gaps between.
JD
--
Command Prompt, Inc. http://the.postgres.company/
+1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jd@commandprompt.com, mark.steben@drivedominion.com
Subject: Re: amount of WAL logs larger than expected
In-Reply-To: <5730D69F.3030208@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox