Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 3D9929FBC97 for ; Wed, 13 Jun 2007 12:29:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 12192-08 for ; Wed, 13 Jun 2007 12:29:21 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.180]) by postgresql.org (Postfix) with ESMTP id E8FFB9FBC93 for ; Wed, 13 Jun 2007 12:29:21 -0300 (ADT) Received: by ik-out-1112.google.com with SMTP id c21so223271ika for ; Wed, 13 Jun 2007 08:29:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ia0GDgd14TwnVKuimhL4ReH7cZPDoNTKm5we/snBeKyTLDKhrxqyyX3hu7mgypKaEeZyPggUliXbH9LrUfNRGv4AQzwlJT7vwbF3idmme5BCu4VFemaxgb2/1viaBQ38y2Zp0qYTahnBRs3Z8SNljYs8f1LtyJLhx7JXfQuSWCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pazHijZI0THTHzPCIrZADoQu3jSvy8hIVqbIrsbSInXM1rFe6GTgL5bmOzfOQO4lrrT24J6/awj7FW15YVd6YxnZm/RfynMVp+lwTOpoBbcW6P2S2R2HFhLROY5wDYqeNqbP80UyQ2LpcvmOoKdReSR/hDEbdaBnpPBUrhw0qN0= Received: by 10.78.175.14 with SMTP id x14mr252057hue.1181748559203; Wed, 13 Jun 2007 08:29:19 -0700 (PDT) Received: by 10.78.18.9 with HTTP; Wed, 13 Jun 2007 08:29:19 -0700 (PDT) Message-ID: Date: Wed, 13 Jun 2007 11:29:19 -0400 From: "Merlin Moncure" To: "Michael Dengler" Subject: Re: WAL shipping and ever expanding pg_xlog Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/238 X-Sequence-Number: 25271 On 6/13/07, Michael Dengler wrote: > OK....it looks like the slave machine has run out of space and that caused > the xlog files to pile up on the master. > > Still...how do I prevent such all of the shipped WAL segments from remaining > on the slave machine? Do I need to retain every single one? Can they be > safely removed after the slave machine has restored the particular segment? Are you using the pg_standy utility? It has options to control this... merlin