Re: WIP checksums patch

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: WIP checksums patch
Date: 2012-10-01 17:22:19
Message-ID: 5069D14B.4020105@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> I think that's OK, because it's still protected by the WAL CRC, and
> there's no expectation that the checksum is correct in shared buffers,
> and the correct checksum should be set on the next checkpoint. Just an
> observation.

We'd need to document that emphatically. Otherwise folks running on ZFS
and/or FusionIO with atomic writes (and, in the future, BTRFS) will
assume that they can turn "full_page_writes" off and checksums on, and
clearly that won't work with the current code. I think that's an
acceptable limitation, I just think we need to document it carefully,
and maybe throw a warning if people start up in that configuration.

> Perhaps we don't allow this to be turned per page, but rather per
> cluster, and per-cluster would require the entire cluster to be
> rewritten.

We dicussed this last year, and options which require a total rewrite of
the database in order to turn on the option were rejected as impractical
for users.

People did say it was desirable to have a manual option which says
"rewrite this entire table with checksums". However, that's not
required for the initial patch. For that matter, it will become
desirable to turn on checksums only for specific tables by they user
(again, future feature).

--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2012-10-01 17:40:46 Re: WIP checksums patch
Previous Message Bruce Momjian 2012-10-01 17:14:33 Re: WIP checksums patch