Simon Riggs wrote:
> * We reserve enough space on a disk block for a CRC check. When a dirty
> block is written to disk we calculate and annotate the CRC value, though
> this is *not* WAL logged.
1. A hint bit is set. It is not WAL-logged, but the page is dirtied.
2. The buffer is flushed out of the buffer cache to the OS. A new CRC is
calculated and stored on the page.
3. Half of the page is flushed to disk (aka torn page problem). The CRC
made it to disk but the flipped hint bit didn't.
You now have a page with incorrect CRC on disk.
In response to
pgsql-hackers by date
|Next:||From: Dimitri Fontaine||Date: 2009-11-30 21:11:11|
|Subject: Re: Application name patch - v4 |
|Previous:||From: Greg Smith||Date: 2009-11-30 20:14:35|
|Subject: Re: [PATCH 4/4] Add tests to dblink covering use of COPY