Re: pg_filedump 9.3: checksums (and a few other fixes) - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: pg_filedump 9.3: checksums (and a few other fixes)
Date
Msg-id CAM3SWZQ9i4E5-1DWEk7-K+fRae8jHxW4bvFEm_0T=aVNonR3cQ@mail.gmail.com
Whole thread Raw
In response to Re: pg_filedump 9.3: checksums (and a few other fixes)  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: pg_filedump 9.3: checksums (and a few other fixes)  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
On Wed, Jun 26, 2013 at 11:27 PM, Andres Freund <andres@2ndquadrant.com> wrote:
> Why not do this from a function/background worker in the backend where
> you can go via the buffer manager to avoid torn pages et al. If you use
> a buffer strategy the cache poisoning et al should be controlleable.

I had considered that, but thought it might be a little bit
aggressive, even with a strategy of BAS_BULKREAD. Maybe the kludge I
have in mind might not end up being that bad in practice, and would
certainly perform better than an approach that used the buffer
manager. But then, going through shared_buffers could be worth the
overhead, if only for the peace of mind of not relying on something
that is subtly broken.


-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Review: Patch to compute Max LSN of Data Pages
Next
From: Andres Freund
Date:
Subject: Re: pg_filedump 9.3: checksums (and a few other fixes)