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 1f1yhS-0006ru-JO for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Mar 2018 18:24:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1yhR-0006ci-BJ for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Mar 2018 18:24:29 +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 1f1yhR-0006cW-3m for pgsql-hackers@lists.postgresql.org; Fri, 30 Mar 2018 18:24:29 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1yhM-0005bG-Qx for pgsql-hackers@postgresql.org; Fri, 30 Mar 2018 18:24:28 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2ACC15F79C; Fri, 30 Mar 2018 14:24:23 -0400 (EDT) Date: Fri, 30 Mar 2018 14:24:23 -0400 From: Stephen Frost To: Tom Lane 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HKLejDDV6gCqJAZ/" Content-Disposition: inline In-Reply-To: <12915.1522433926@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --HKLejDDV6gCqJAZ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Chapman Flack writes: > > On 03/27/18 22:10, Michael Paquier wrote: > >> Here you go for one example: > >> https://sourceforge.net/projects/pglesslog/ >=20 > > In any case, from my study of the commit, it is hard for me to see an i= ssue. > > The code comment says: "mark the header to indicate that WAL records > > beginning in this page have removable backup blocks." >=20 > Yeah, that commit just moved a flag from individual WAL records to page > headers, arguing that it was okay to assume that the same flag value > applies to all records on a page. If there are no records in the page, > it doesn't matter what you think the flag value is. >=20 > 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. Thanks! Stephen --HKLejDDV6gCqJAZ/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJavoDWAAoJEO1sijiDR2RV4FwP/1AP5Sll4r0rSjmjr8Di1Tkw mcmxd/57UpLeqzVAwz3z8baLOx5I5rt9SoLVjFTuMff9wTWAkDl9RyrDWh6dGVqB 5ZTzGF2xFst1xv3694dqjEPRrEIoMHPDRkNepg/xZAFOST2C3ucaUDCXHDmZdN3C YTKKYDnnmqFjZPuGB+24l2846AooJQmjHr5Zo44+4V4erzMK9b1NIcMmcbvfHYAC +mkuYENQTenL4QaAfZCK/2k5QC8Eb4sNncxmcTIobD+YgpxmYda9FbZzHfLZ4g5l DgVt2Ci0WvrDImi7jfXcBNjg95oHMB/SXXgiiFpcoWrDHiNb3aHO4y8FNyNtCl8z EY2krBttqEAcwyK6v8nbdoRprHLqZisut7yVcUufIeE7RUqRjC7EtUszc2KCG4Qa 3a8I6MgOkPGPQpgYX80cTRBIcme+AEvlNlfi/jPL8yAZpaRTgdj2fbksSC8J72oi FpcvEO/Wqxn9gNzoNuIpxsGIL83rsLRBp3IhpCt+FPWAEaMytJczugU2xc+rITZO vMkkjX/aYYQWWWkST5lWr4hbZTLkVTXQ+eyFn9ii0R8ZR0/uksmyQ0mnpva/yM0S iQyW830f28xTLnleCKiviC3/kQjCA5gYQcXFjTNc8cYIeq5zxlzXwnwE7bpLO5gO lhNLh4ChJXl5F3UMApWK =phyw -----END PGP SIGNATURE----- --HKLejDDV6gCqJAZ/--