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 1f20Xg-0005kD-Nb for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Mar 2018 20:22:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f20Xf-0003st-2T for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Mar 2018 20:22:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f20Xe-0003si-RN for pgsql-hackers@lists.postgresql.org; Fri, 30 Mar 2018 20:22:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f20Xb-0008Jb-RJ for pgsql-hackers@postgresql.org; Fri, 30 Mar 2018 20:22:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2UKLOJL024354; Fri, 30 Mar 2018 16:21:24 -0400 From: Tom Lane To: Stephen Frost cc: Chapman Flack , Tomas Vondra , Michael Paquier , Daniel Gustafsson , Michael Paquier , Heikki Linnakangas , Robert Haas , Bruce Momjian , PostgreSQL Hackers Subject: Re: [HACKERS] AdvanceXLInsertBuffer vs. WAL segment compressibility In-reply-to: <20180330182423.GS24540@tamriel.snowman.net> References: <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> <5ABD9083.5050908@anastigmatix.net> <12915.1522433926@sss.pgh.pa.us> <20180330182423.GS24540@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Fri, 30 Mar 2018 14:24:23 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24352.1522441284.1@sss.pgh.pa.us> Date: Fri, 30 Mar 2018 16:21:24 -0400 Message-ID: <24353.1522441284@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> A potentially stronger complaint is that WAL-reading tools might fail >> outright on a page with an invalid header, but I'd say that's a robustness >> issue that they'd need to address anyway. There's never been any >> guarantee that the trailing pages of a WAL segment are valid. > Agreed, I don't buy off that tools which fall apart when reading a page > with an invalid header should block this from moving forward- those > tools need to be fixed to not rely on trailing/unused WAL pages to be > valid. Yup. Pushed with some rewriting of the comments. I did not like the proposed test case too much, particularly not its undocumented API change for check_pg_config, so I did not push that. We already have test coverage for pg_switch_wal() so it doesn't seem very critical to have more. regards, tom lane