Re: Enable data checksums by default - Mailing list pgsql-hackers

From Christoph Berg
Subject Re: Enable data checksums by default
Date
Msg-id 20190401081647.GB13726@msg.df7cb.de
Whole thread Raw
In response to Re: Enable data checksums by default  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: Enable data checksums by default
Re: Enable data checksums by default
List pgsql-hackers
Re: Tomas Vondra 2019-03-30 <20190330192543.GH4719@development>
> I have not investigated the exact reasons, but my hypothesis it's about
> the amount of WAL generated during the initial CREATE INDEX (because it
> probably ends up setting the hint bits), which puts additional pressure
> on the storage.
> 
> Unfortunately, this additional cost is unlikely to go away :-(

If WAL volume is a problem, would wal_compression help?

> Now, maybe we want to enable checksums by default anyway, but we should
> not pretent the only cost related to checksums is CPU usage.

Thanks for doing these tests. The point I'm trying to make is, why do
we run without data checksums by default? For example, we do checksum
the WAL all the time, and there's not even an option to disable it,
even if that might make things faster. Why don't we enable data
checksums by default as well?

Christoph



pgsql-hackers by date:

Previous
From: Antonin Houska
Date:
Subject: Question on alignment
Next
From: Daniel Gustafsson
Date:
Subject: Re: [HACKERS] Weaker shmem interlock w/o postmaster.pid