Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azpuP-0003oJ-Tb for pgsql-admin@arkaria.postgresql.org; Mon, 09 May 2016 18:27:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1azpuP-0003JY-G7 for pgsql-admin@arkaria.postgresql.org; Mon, 09 May 2016 18:27:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1azpuP-0003JN-3W for pgsql-admin@postgresql.org; Mon, 09 May 2016 18:27:57 +0000 Received: from www.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618] helo=lists.commandprompt.com) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azpuF-00081y-Tu for pgsql-admin@postgresql.org; Mon, 09 May 2016 18:27:56 +0000 Received: from [192.168.1.60] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 52C5C1DE; Mon, 9 May 2016 11:27:44 -0700 (PDT) Received: from c-73-225-27-179.hsd1.wa.comcast.net ([73.225.27.179] helo=[192.168.1.60]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.4.5); 9 May 2016 11:27:43 -0700 Subject: Re: amount of WAL logs larger than expected To: Mark Steben , pgsql-admin References: From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <5730D69F.3030208@commandprompt.com> Date: Mon, 9 May 2016 11:27:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.4.5(15162) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-18464-01611 X-Assp-Session: 7F43CC9348C0 (mail 1) X-Assp-Envelope-From: jd@commandprompt.com X-Assp-Intended-For: pgsql-admin@postgresql.org X-Assp-Intended-For: mark.steben@drivedominion.com X-Assp-Original-Subject: Re: [ADMIN] amount of WAL logs larger than expected X-Assp-Client-SSL: yes X-Pg-Spam-Score: -4.0 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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