Aidan Van Dyk <[EMAIL PROTECTED]> writes:
> But why can't you wal-log the hint bits from the "buffered" page.  then your
> consitent.  At least as consistent as the original write was.

> So you're CRC ends up being:
>    Buffer the page
>    Calculate CRC on the buffered page
>    WAL (in bulk) the hint bits (and maybe CRC?)
>    write buffered page

The trouble here is to avoid repeated WAL-logging of the same hint bits.

(Alvaro's patch tried to do that by depending on another hint bit in the
page header, but that seems unsafe if hint bit setters aren't taking
exclusive lock.)

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to