Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4xMM-0004Bs-2X for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jun 2015 20:21:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z4xMK-0002f6-Pr for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Jun 2015 20:21:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z4xMK-0002ew-62 for pgsql-bugs@postgresql.org; Tue, 16 Jun 2015 20:21:24 +0000 Received: from smtp90.ord1c.emailsrvr.com ([108.166.43.90]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z4xMH-0007QC-1l for pgsql-bugs@postgresql.org; Tue, 16 Jun 2015 20:21:23 +0000 Received: from smtp12.relay.ord1c.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp12.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 641463807EA; Tue, 16 Jun 2015 16:21:17 -0400 (EDT) Received: by smtp12.relay.ord1c.emailsrvr.com (Authenticated sender: jeff.frost-AT-pgexperts.com) with ESMTPSA id 96D10380A39; Tue, 16 Jun 2015 16:16:27 -0400 (EDT) X-Sender-Id: jeff.frost@pgexperts.com Received: from [10.10.10.13] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:587 (trex/5.4.2); Tue, 16 Jun 2015 20:16:28 GMT Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: [GENERAL] pg_xlog on a hot_standby slave filling up From: Jeff Frost In-Reply-To: <20150616183556.GA9823@msg.df7cb.de> Date: Tue, 16 Jun 2015 13:16:22 -0700 Cc: Xavier 12 , PostgreSQL Bugs Content-Transfer-Encoding: quoted-printable Message-Id: <67E2F20A-6A2E-484E-BF97-544F1FC66566@pgexperts.com> References: <20150616183556.GA9823@msg.df7cb.de> To: Christoph Berg X-Mailer: Apple Mail (2.2098) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org > On Jun 16, 2015, at 11:35 AM, Christoph Berg wrote: >=20 > [moving to -bugs] >=20 > Re: Xavier 12 2015-06-16 >> Hi everyone, >>=20 >> Questions about pg_xlogs again... >> I have two Postgresql 9.1 servers in a master/slave stream replication >> (hot_standby). >>=20 >> Psql01 (master) is backuped with Barman and pg_xlogs is correctly >> purged (archive_command is used). >>=20 >> Hower, Psql02 (slave) has a huge pg_xlog (951 files, 15G for 7 days >> only, it keeps growing up until disk space is full). I have found >> documentation and tutorials, mailing list, but I don't know what is >> suitable for a Slave. Leads I've found : >=20 > Hi, >=20 > I have the same problem here. Master/slave running on 9.3.current. On > the master everything is normal, but on the slave server, files in > pg_xlog and archive_status pile up. Interestingly, the filenames are > mostly 0x20 apart. (IRC user Kassandry is reporting the same issue on > 9.4 as well, including the 0x20 spacing.) I=92ve seen this before, but haven=92t been able to make a reproducible tes= t case yet. Are you by chance using SSL to talk to the primary server? Is the ssl_rene= gotiation_limit the default of 512MB? 32 WAL files at 16MB each =3D 512MB.= I found that it would always leave the WAL file from before the invalid r= ecord length message. Does that seem to be the case for you as well? --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs