Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZ5Y8-0007V8-K6 for pgsql-general@arkaria.postgresql.org; Wed, 10 Jan 2018 01:51:28 +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 1eZ5Y6-00005R-DX for pgsql-general@arkaria.postgresql.org; Wed, 10 Jan 2018 01:51:26 +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 1eZ5Y6-00005G-2B for pgsql-general@lists.postgresql.org; Wed, 10 Jan 2018 01:51:26 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eZ5Xy-0005NK-Hu for pgsql-general@lists.postgresql.org; Wed, 10 Jan 2018 01:51:24 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A0B115F79C; Tue, 9 Jan 2018 20:51:17 -0500 (EST) Date: Tue, 9 Jan 2018 20:51:17 -0500 From: Stephen Frost To: Andreas Joseph Krogh Cc: pgsql-general@lists.postgresql.org Subject: Re: Sv: Re: Sv: Re: Sv: Re: Sv: Re: data-checksums Message-ID: <20180110015117.GO2416@tamriel.snowman.net> References: <20180110000126.wfq3dwpwjt2kpgsz@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nDXtXAWBTJc4rD/f" 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 --nDXtXAWBTJc4rD/f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Andreas Joseph Krogh (andreas@visena.com) wrote: > Aha, so enabling CRC causes hint-bits to be written causing extra WAL-log= ging,=20 > which woudn't be the case without CRC enabled? > Thanks for pointing that out. Yes, having checksums enabled forces logging of hint bits. You can enable wal_log_hints independently too, without having checksums, to see what kind of an impact it'll have on your environment. A useful documentation update might be: --- With checksums enabled, wal_log_hints will be enabled and each page read or write will involve calculating the checksum for the page. --- I'd probably just replace the "Enabling checksums may incur a noticeable performance penalty" with the above, as it should be clear that doing more work implies an impact on performance and that avoids the whole question of trying to characterize in a general way something that can't be generalized (as it's workload dependent). Thanks! Stephen --nDXtXAWBTJc4rD/f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaVXGVAAoJEO1sijiDR2RVUt4P/3wMkQHXcDs4pN9Abp2clvS6 iQCKefwdN1N27ZkcJ1kl/WrKvH17e6L2DAafyXwAy6wvBsBSR41jKqvG9FdrrODO R8WCFurAG2GuKQNWrcgPKlNaOnPel3s/A0nK3K3cU8BLr4LjGjuAwI4DhekQA4Rl jjRgd9hTvugYgfIXRZ9kg2r9Fd/cEi4DH6+OHvVaiwuJ5KWxx1LZYvSf+vjYCe19 XbJeSKo9sQE0r61zekjqnpQuY6cFQYQpwhDz41XfAr8d6TWjx8mSBbNZvPdMStHd hA5NPsDiNVRFZJ+QWRiXhAEfgLxpC7O/itSGCrxWaDLx5TbYTCexex5blKl4SxB+ KuPSgebG9WtrOoDtAvTMElQk6Do0IkxeTivhXUCg3eXbD0ofH3uzo0JxB28aHEqZ GbH9TMcDhnqkoDwpoPOnmxsl9YPbnoQn5khbMobwIJj+6Xmg7sdo+IpjnOr/Rg7w 6XkrkZ9AlyBl+Oxh+7xon8NqcEd3lR3EHp0yGmJoFL/DqtBE+2KnbhOF7sHiTRQV 0MkJGYJc9A3h5wNLLdDNOcszmdXEakEGD95IYVnTsjB/+LC725Afv8ExOul4genP f0XUNYBLJWIQm1qogZSqqgSyaltDBKM/eLEt3bWxwcWseZf/zfEdc/SGbcRC9sKj cimbN5PWqr/rrP4uQ1Av =vhOI -----END PGP SIGNATURE----- --nDXtXAWBTJc4rD/f--