Re: Block-level CRC checks

From: Aidan Van Dyk <aidan(at)highrise(dot)ca>
To: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
Cc: Greg Stark <greg(dot)stark(at)enterprisedb(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Block-level CRC checks
Date: 2008-11-17 20:40:41
Message-ID: 20081117204041.GW31053@yugib.highrise.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Matthew T. O'Connor <matthew(at)zeut(dot)net> [081117 15:19]:
> Aidan Van Dyk wrote:
>> * Greg Stark <greg(dot)stark(at)enterprisedb(dot)com> [081117 03:54]:
>>> I thought of saying that too but it doesn't really solve the problem.
>>> Think of what happens if someone sets a hint bit on a dirty page.
>>
>> If the page is dirty from a "real change", then it has a WAL backup block
>> record already, so the torn-page on disk is going to be fixed with the wal
>> replay ... *because* of the torn-page problem already being "solved" in PG.
>> You don't get the hint-bits back, but that's no different from the current
>> state. But nobody's previously cared if hint-bits wern't set on WAL replay.
>
>
> What if all changes to a page (even hit bits) are WAL logged when
> running with Block-level CRC checks enables, does that make things
> easier? I'm sure it would result in some performance loss, but anyone
> enabling Block Level CRCs is already trading some performance for safety.
>
> Thoughts?

*I'ld* be more than happy for that trade-off, because:

1) I run PostgreSQL on old, crappy hardware
2) I run small databases
3) I've never had a situation where PG was already to slow
4) I'ld like to know when I really *should* dump old hardware...

But I'm not going to loose money if my DB is down either, so I'ld hardly
consider myself one to cater to ;-)

--
Aidan Van Dyk Create like a god,
aidan(at)highrise(dot)ca command like a king,
http://www.highrise.ca/ work like a slave.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-11-17 21:10:21 toast by chunk-end (was Re: PG_PAGE_LAYOUT_VERSION 5 - time for change)
Previous Message Peter Eisentraut 2008-11-17 20:20:32 Re: patch to fix client only builds