Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1ika-0002ye-4S for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Mar 2018 01:22:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1ikY-0004eH-Ub for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Mar 2018 01:22:38 +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.89) (envelope-from ) id 1f1ihA-0000yn-G5 for pgsql-hackers@lists.postgresql.org; Fri, 30 Mar 2018 01:19:09 +0000 Received: from bay.acenet.us ([173.230.252.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1ih7-0005cn-8X for pgsql-hackers@postgresql.org; Fri, 30 Mar 2018 01:19:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yT1KYfazxDxnxYkfr5qCj8rtV18ShILqVy8nh+J5jk8=; b=CqyuMDM/eQZClQegIdOBjpotxE MyP7/dHV5q0OqieAFewXMRQw7zH/UYqIQjA2SOhhFiug7js5Yt/rD0sMNEDYsztTE1XNynj+ZheJK OJorJp6OdzFCv+H7P4jgELpA5zgTY5hPNbKj3CrHqo5zGDkpMt1rQsFLA16H64DSeB1ZqXyFFE5Tf gBxKVatx9VqTWZ12LpcoVJQnevfs5kKJXfgNyFYmG28u6yA6SvP6vq7+gQvWoB2jX+LXGND+yXuDM 8FKEH2B/aOd6Z5VIQm23g6rNEuuGcB+uhtN3cw9geGiinT3nWmVKy+XYGLnufzPoCDasdPrqTOoO0 yEsU6cag==; Received: from [192.182.57.106] (port=59290) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1f1ih2-000XaM-II; Thu, 29 Mar 2018 21:19:01 -0400 Subject: Re: [HACKERS] AdvanceXLInsertBuffer vs. WAL segment compressibility To: Tomas Vondra , Michael Paquier , Stephen Frost References: <5A92F0C0.7070706@anastigmatix.net> <5AADB130.2020206@anastigmatix.net> <4597.1521338981@sss.pgh.pa.us> <46FFB930-B0F3-400A-85ED-D9948C97FADF@yesql.se> <5AAEE00E.9050503@anastigmatix.net> <21C25ED8-4ED8-4AD4-B551-3E3987ECB18F@yesql.se> <5AAEFF11.3070903@anastigmatix.net> <20180326032731.GM24540@tamriel.snowman.net> <20180326054354.GB2759@paquier.xyz> <5ABAC668.5080203@anastigmatix.net> <8c00b26a-d6da-5764-e67e-9c4d8128081a@2ndquadrant.com> Cc: Daniel Gustafsson , Tom Lane , Michael Paquier , Heikki Linnakangas , Robert Haas , Bruce Momjian , PostgreSQL Hackers From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5ABD9083.5050908@anastigmatix.net> Date: Thu, 29 Mar 2018 21:18:59 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <8c00b26a-d6da-5764-e67e-9c4d8128081a@2ndquadrant.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-98.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap+anastigmatix.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/27/18 20:09, Tomas Vondra wrote: > Not sure what's up with gitweb, but git finds it without any issue: > > https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=2dd9322ba6eea76800b38bfea0599fbc459458f2 Thanks, that worked. On 03/27/18 22:10, Michael Paquier wrote: > Here you go for one example: > https://sourceforge.net/projects/pglesslog/ So far, I have been able to study the commit pertaining to XLP_BKP_REMOVABLE. For again some odd reason, I am striking out on finding pglesslog code to study. Using the clone URL offered by sourceforge: $ git clone https://git.code.sf.net/p/pglesslog/code pglesslog-code Cloning into 'pglesslog-code'... warning: You appear to have cloned an empty repository. Checking connectivity... done. and there's a Files tab, but it tells me This project has no files. I can find 1.4.2 beta on pgFoundry, but that predates the BKP_REMOVABLE commit. In any case, from my study of the commit, it is hard for me to see an issue. The code comment says: "mark the header to indicate that WAL records beginning in this page have removable backup blocks." In the only case where this patch will zero a header--in the unused space following the switch record in a segment--there are no "WAL records beginning in this page". There will not be another WAL record of any kind until the next valid page (with valid xlp_magic xlp_tli xlp_pageaddr), which will be at the start of the next segment, and that page will have XLP_BKP_REMOVABLE if it ought to, and that will tell the reader what it needs to know. Am I overlooking something? -Chap