pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Sv: Re: Sv: Re: Sv: Re: Sv: Re: data-checksums
Date: Tue, 9 Jan 2018 20:51:17 -0500
Message-ID: <20180110015117.GO2416@tamriel.snowman.net> (raw)
In-Reply-To: <VisenaEmail.10c.cb44223257f6bfb.160dd7911a2@tc7-visena>
References: <20180110000126.wfq3dwpwjt2kpgsz@alap3.anarazel.de>
	<VisenaEmail.10c.cb44223257f6bfb.160dd7911a2@tc7-visena>

Greetings,

* Andreas Joseph Krogh (andreas@visena.com) wrote:
> Aha, so enabling CRC causes hint-bits to be written causing extra WAL-logging, 
> 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 <link to the GUC's documentation>
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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (7+ messages)  latest in thread

Message-ID: <20180110015117.GO2416@tamriel.snowman.net>
Permalink:  ../20180110015117.GO2416@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180110015117.GO2416@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, andreas@visena.com
  Subject: Re: data-checksums
  In-Reply-To: <20180110015117.GO2416@tamriel.snowman.net>
  References: <20180110000126.wfq3dwpwjt2kpgsz@alap3.anarazel.de> <VisenaEmail.10c.cb44223257f6bfb.160dd7911a2@tc7-visena> <20180110015117.GO2416@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox