Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YhniQ-0004zk-Qz for pgsql-committers@arkaria.postgresql.org; Mon, 13 Apr 2015 23:24:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YhniQ-0008Gv-B1 for pgsql-committers@arkaria.postgresql.org; Mon, 13 Apr 2015 23:24:30 +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 1YhniP-0008Gj-O9 for pgsql-committers@postgresql.org; Mon, 13 Apr 2015 23:24:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YhniM-0002Rp-US for pgsql-committers@postgresql.org; Mon, 13 Apr 2015 23:24:28 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t3DNOFZ2001446; Mon, 13 Apr 2015 19:24:16 -0400 From: Tom Lane To: Heikki Linnakangas cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Don't archive bogus recycled or preallocated files after timelin In-reply-to: References: Comments: In-reply-to Heikki Linnakangas message dated "Mon, 13 Apr 2015 14:56:54 -0000" Date: Mon, 13 Apr 2015 19:24:15 -0400 Message-ID: <2414.1428967455@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 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. I've not read the patch, so maybe the code is all right, but this description most certainly is not. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers