From: | "tsunakawa(dot)takay(at)fujitsu(dot)com" <tsunakawa(dot)takay(at)fujitsu(dot)com> |
---|---|
To: | 'Stephen Frost' <sfrost(at)snowman(dot)net>, Peter Geoghegan <pg(at)bowt(dot)ie> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Michael Banck <michael(dot)banck(at)credativ(dot)de>, Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | RE: data_checksums enabled by default (was: Move --data-checksums to common options in initdb --help) |
Date: | 2021-01-08 05:41:47 |
Message-ID: | TYAPR01MB29907574CEB8609AB63B1679FEAE0@TYAPR01MB2990.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
From: Stephen Frost <sfrost(at)snowman(dot)net>
> I hadn't intended to make an argument that enabling checksums was
> equivilant to enabling or disabling fsync- I said it was 'akin', by which I meant it
> was similar in character, as in, as I said previously, a way for PG to hedge
> against certain external-to-PG risks (though, unfortunately, our checksums
> aren't able to actually mitigate any of the risks but merely to detect them, but
> there is certainly value in that too).
I only skimmed a few recent mails in this thread, but I've been hoping that the checksum gets on by default. So +1. As the storage layers get complex, including the container and virtual storage, we may increasingly be passed bogus data by software bugs. I always tell my little kid to fasten a seatbelt, although she dislikes it as she can't move well.
I've also felt it sad that checksum is not mentioned in the database cluster setup section of the manual [1]. If checksum is turned on by default, I think we can mention that checksum can be disabled for maximum speed in this page.
It'd be desirable to lighten the overhead of checksumming, but I have no idea now. IIRC, Oracle and SQL Server also scan the whole page to compute the checksum. Maybe the disadvantage of Postgres is that it has to copy the whole page for fear of concurrent hint bit updates?
[1]
19.2. Creating a Database Cluster
https://www.postgresql.org/docs/devel/creating-cluster.html
Regards
Takayuki Tsunakawa
From | Date | Subject | |
---|---|---|---|
Next Message | Kyotaro Horiguchi | 2021-01-08 05:47:05 | Re: In-placre persistance change of a relation |
Previous Message | Drouvot, Bertrand | 2021-01-08 05:15:26 | Re: Add Information during standby recovery conflicts |