Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP9DC-00017U-9J for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Dec 2017 15:44:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eP9DB-0002yS-T1 for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Dec 2017 15:44:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eP9DB-0002yG-Jz for pgsql-hackers@lists.postgresql.org; Wed, 13 Dec 2017 15:44:45 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eP9D7-0001xK-6r for pgsql-hackers@postgresql.org; Wed, 13 Dec 2017 15:44:44 +0000 Received: from crunchy.local (wsip-98-172-23-16.dc.dc.cox.net [98.172.23.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id A78C254665; Wed, 13 Dec 2017 15:44:39 +0000 (UTC) Subject: Re: PATCH: Exclude unlogged tables from base backups To: Stephen Frost Cc: Andres Freund , PostgreSQL-development , Michael Paquier References: <04791bab-cb04-ba43-e9c0-664a4c1ffb2c@pgmasters.net> <20171212225234.jqdwd4sp663l4znp@alap3.anarazel.de> <5e428ad7-f37f-6479-aabf-2c8b9318fb79@pgmasters.net> <20171212230740.evr7rvkzz5bztdg6@alap3.anarazel.de> <20171213014804.GH4628@tamriel.snowman.net> <20171213150456.GI4628@tamriel.snowman.net> From: David Steele Message-ID: Date: Wed, 13 Dec 2017 10:44:38 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171213150456.GI4628@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/13/17 10:04 AM, Stephen Frost wrote: > > Just to be clear- the new base backup code doesn't actually *do* the > non-init fork removal, it simply doesn't include the non-init fork in > the backup when there is an init fork, right? It does *not* do the unlogged non-init fork removal. The code I refactored in reinit.c is about identifying the forks, not removing them. That code is reused to determine what to exclude from the backup. I added the regression tests to ensure that the behavior of reinit.c is unchanged after the refactor. > We certainly wouldn't want a basebackup actually running around removing > the main fork for unlogged tables on a running and otherwise healthy > system. ;) That would not be good. -- -David david@pgmasters.net