Re: [PATCHES] wal_checksum = on (default) | off - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] wal_checksum = on (default) | off
Date
Msg-id 18700.1168532539@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] wal_checksum = on (default) | off  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: [PATCHES] wal_checksum = on (default) | off  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> "Tom Lane" <tgl@sss.pgh.pa.us> writes:
>> Pretty much not happening; or are you volunteering to fix every part of
>> the system to tolerate injections of inserted data anywhere in a stored
>> datum?

> I was thinking to do it at a low level as the xlog records are prepared to be
> written to the filesystem and as the data is being read from disk. I haven't
> read that code yet to see where to inject it but I understand there's already
> a copy happening and it could be done there.

You understand wrong ... a tuple sitting on disk is normally read
directly from the shared buffer, and I don't think we want to pay for
copying it.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: [PATCHES] wal_checksum = on (default) | off
Next
From: Dave Cramer
Date:
Subject: Re: wal buffers documentation -errata