Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jHv4U-00043m-FS for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 19:55:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHv4T-0000Ts-7o for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 19:55:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHv4S-0000RX-Q1 for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2020 19:55:12 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jHv4Q-0000iX-Ha for pgsql-hackers@postgresql.org; Fri, 27 Mar 2020 19:55:11 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6F2385F798; Fri, 27 Mar 2020 15:55:12 -0400 (EDT) Date: Fri, 27 Mar 2020 15:55:12 -0400 From: Stephen Frost To: Robert Haas Cc: Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , David Steele , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C Subject: Re: backup manifests Message-ID: <20200327195512.GG13712@tamriel.snowman.net> References: <20200323224217.GN13712@tamriel.snowman.net> <20200325133106.GS13712@tamriel.snowman.net> <20200325205433.GV13712@tamriel.snowman.net> <20200326163452.GW13712@tamriel.snowman.net> <20200326204414.GY13712@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vxNpRqk6sR1V+qwt" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --vxNpRqk6sR1V+qwt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Robert Haas (robertmhaas@gmail.com) wrote: > On Thu, Mar 26, 2020 at 4:44 PM Stephen Frost wrote: > > Is it actually possible, today, in PG, to have a 4GB WAL record? > > Judging this based on the WAL record size doesn't seem quite right. >=20 > I'm not sure. I mean, most records are quite small, but I think if you > set REPLICA IDENTITY FULL on a table with a bunch of very wide columns > (and also wal_level=3Dlogical) it can get really big. I haven't tested > to figure out just how big it can get. (If I have a table with lots of > almost-1GB-blobs in it, does it work without logical replication and > fail with logical replication? I don't know, but I doubt a WAL record > >4GB is possible, because it seems unlikely that the code has a way to > cope with that struct field overflowing.) Interesting.. Well, topic for another thread, but I'd say if we believe that's possible then we might want to consider if the crc32c is a good decision to use still there. > > Again, I'm not against having a checksum algorithm as a option. I'm not > > saying that it must be SHA512 as the default. >=20 > I think that what we have seen so far is that all of the SHA-n > algorithms that PostgreSQL supports are about equally slow, so it > doesn't really matter which one you pick there from a performance > point of view. If you're not saying it has to be SHA-512 but you do > want it to be SHA-256, I don't think that really fixes anything. Using > CRC-32C does fix the performance issue, but I don't think you like > that, either. We could default to having no checksums at all, or even > no manifest at all, but I didn't get the impression that David, at > least, wanted to go that way, and I don't like it either. It's not the > world's best feature, but I think it's good enough to justify enabling > it by default. So I'm not sure we have any options here that will > satisfy you. I do like having a manifest by default. At this point it's pretty clear that we've just got a fundamental disagreement that more words aren't going to fix. I'd rather we play it safe and use a sha256 hash and accept that it's going to be slower by default, and then give users an option to make it go faster if they want (though I'd much rather that alternative be a 64bit CRC than a 32bit one). Andres seems to agree with you. I'm not sure where David sits on this specific question. Thanks, Stephen --vxNpRqk6sR1V+qwt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJeflogAAoJEO1sijiDR2RVFaUP/3pjPrYMK9ZG/Ro8lFUxPndf /B/XLur6BLNtkFWpDAVH3AJzWeSsUYJmUcBslrgGAmMqpgXYRAtRqQ1niSk0mGRJ q6EyF1aExt6fE/o+C0EJx24HRlZhS0BjSYboTxSrbUbPXefPj8UFUQ2ngWgVj29I 3DKsvJ6gDh0trHeGLnvyR09zvUCwdPgUgL+ZttLdm6Jjmwmmkc/GlufoWd7DHbp1 1wfoODm2903e+g9BZR/azpltmMAtKifwTMU2B9MP9YzknPSfOEegjjbo2RiugB3Y 9rDQdiDzP78R+FUrca/MiTVC3DrbqstfyuQZ8p2fRN+4gZpyF3LWoFOGiVX7VCjY L63FvzTiwX/nhI8aLxJ3RUZV9EO2RNlu18sTKhzZxBIqNTR2vr683mYZ7IqYPCyE X1jxcFT7JscPQb7fsMxnQQznGSY+nb5YN0A4DdUmudZxK9z5fTz3xOHpg3W+w3jX R5rqi1zIWy5C+zxu7JlTAF2vEvjPai4FN4gqfMPBfQ+UCxXbdn5XJbMC52icVKpg oex+XX5lxjv60hCudYxeEwdB+g70uMaMZnIwIr/u518OWvHcuqLsns8Vh5qC2I99 5EmUBc/cFgssA6Ly4uqW6gt+dgPBSEhqS4qk/lBZ3llbUlGD0/CjXq2Ge1W99HEw WOBHD2B2on7p8YCxB21Y =vdAH -----END PGP SIGNATURE----- --vxNpRqk6sR1V+qwt--