Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yi29f-0005bq-Hu for pgsql-committers@arkaria.postgresql.org; Tue, 14 Apr 2015 14:49:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yi29f-00005B-1w for pgsql-committers@arkaria.postgresql.org; Tue, 14 Apr 2015 14:49:35 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yi29e-000055-DY for pgsql-committers@postgresql.org; Tue, 14 Apr 2015 14:49:34 +0000 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Yi29a-0002gY-Gk for pgsql-committers@postgresql.org; Tue, 14 Apr 2015 14:49:32 +0000 Received: by wgsk9 with SMTP id k9so14705731wgs.3 for ; Tue, 14 Apr 2015 07:49:28 -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=B5mrJENdclRnw37YC0jUvkM0a3/S+PaG5LxOx87mSGQ=; b=06cn60BgTgYkGRqBNbZ4SDlB3DYm06zEw/V7R3tphSc1ZegtIcucFLHlOWgsdUFD17 5KsWzEjevgfAc32yVbmIyNpchlMZQhzsEuN/wEM1q0FPWLpTapoIPM9s1DnBRDDxx1sl UZPQhXelSkrWTgxT3yJLdY9KyDH3gV5O5Tj4G9+kGhSlIXddS6n5pxE73ZMAOF+cVmuq +K+3TZnC4lZwJIQJ7oZxKLoZSRx53Kf1XyKdgtWHlbdZz1TQZxJ6WbEC0b4iiAu2NoNX jMytVPqT//gWAp2xbYiUlNERG9kUSZUM6tvdNJeC2MBBNgKXYxx32/lDqOXgmdANtkzX +K0g== X-Received: by 10.180.73.230 with SMTP id o6mr33745859wiv.11.1429022963996; Tue, 14 Apr 2015 07:49:23 -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 dz4sm17537001wib.17.2015.04.14.07.49.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2015 07:49:22 -0700 (PDT) Message-ID: <552D28F1.5010103@iki.fi> Date: Tue, 14 Apr 2015 17:49:21 +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> <552CB5E4.8050207@iki.fi> <2843.1429021926@sss.pgh.pa.us> In-Reply-To: <2843.1429021926@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 05:32 PM, Tom Lane wrote: > Heikki Linnakangas writes: >> On 04/14/2015 02:24 AM, Tom Lane wrote: >>> 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. > > How do we know those files are in the WAL archive? Presumably that's where they came from if you're doing PITR. Or they were copied into pg_xlog manually from somewhere else. After PITR, if you decide that you didn't like the result and perform another recovery, you have to restore from a base backup again, which will wipe out pg_xlog anyway. Also, if the recovery continued longer, those files would be deleted from pg_xlog anyway, at a later restartpoint. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers