Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YhuUc-0003sp-Py for pgsql-committers@arkaria.postgresql.org; Tue, 14 Apr 2015 06:38:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YhuUb-0004Cm-OL for pgsql-committers@arkaria.postgresql.org; Tue, 14 Apr 2015 06:38:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YhuUb-0004Ce-3G for pgsql-committers@postgresql.org; Tue, 14 Apr 2015 06:38:41 +0000 Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YhuUX-0008CH-0n for pgsql-committers@postgresql.org; Tue, 14 Apr 2015 06:38:39 +0000 Received: by wgsk9 with SMTP id k9so520603wgs.3 for ; Mon, 13 Apr 2015 23:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=uT5Znbrd+B5iFFjKOIp8qWTkoi2CgvPycMnLULxpQOM=; b=Wza83CdXdDzpA6eV7iPkufLJf914BNL6aLhPg4KveGhzJZ/Mn+B7jENtoiy59+iPJe dcTe/r/Y+wA3RJNW+g3aBEam1oPkSMJqlk30ccOzSTvt0Bvw7nFsMkpuKKUEzPHExRUP saNsGCYia4FuxsEgZpmsRIruukElg+Ku8cAO7m7aOZ7Ir39VdKMwWdM/EAMo4QjxfxoL w8g9ZOS1DvECvwCITSjRR86xM1FrxWyNfkgtcGd1F7EcKGfGSRYmUXod9xH0fihQd9cz iKROKXtrpzAJcglRTsEHcu5XRA8c/XdsK4YDQ/2mBOVv6jLsgoT0FyF8hfAMTt3oZlbe 41tg== X-Received: by 10.194.61.82 with SMTP id n18mr33953744wjr.35.1428993514135; Mon, 13 Apr 2015 23:38:34 -0700 (PDT) Received: from [192.168.1.99] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by mx.google.com with ESMTPSA id ng5sm1288831wic.24.2015.04.13.23.38.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2015 23:38:33 -0700 (PDT) Message-ID: <552CB5E4.8050207@iki.fi> Date: Tue, 14 Apr 2015 09:38:28 +0300 From: Heikki Linnakangas Reply-To: hlinnaka@iki.fi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-committers@postgresql.org Subject: Re: pgsql: Don't archive bogus recycled or preallocated files after timelin References: <2414.1428967455@sss.pgh.pa.us> In-Reply-To: <2414.1428967455@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 04/14/2015 02:24 AM, Tom Lane wrote: > Heikki Linnakangas writes: >> To fix, whenever we switch to a new timeline, scan the data directory for >> WAL segments on the old timeline, but with a higher segment number, and >> remove them. > > Wait a minute. Didn't you just break PITR scenarios? The *entire point* > of the multiple-timeline mechanism is that you can start a new WAL history > from a point in the past without destroying WAL history after that point > on the old timeline. It deletes the files belonging to other timelines from pg_xlog only. The WAL archive is not touched. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers