Re: WAL replay failure after file truncation(?)

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: WAL replay failure after file truncation(?)
Date: 2005-05-26 01:38:34
Message-ID: 4295289A.5000504@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Plan B is for WAL replay to always be willing to extend the file to
> whatever record number is mentioned in the log, even though this
> may require inventing the contents of empty pages; we trust that their
> contents won't matter because they'll be truncated again later in the
> replay sequence. This seems pretty messy though, especially for
> indexes. The major objection to it is that it gives up error detection
> in real filesystem-corruption cases: we'll just silently build an
> invalid index and then try to run with it. (Still, that might be better
> than refusing to start; at least you can REINDEX afterwards.)

You could at least log some sort of warning during the PITR process.
Anyone running a PITR not paying attention to their logs is in trouble
anyway...

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-05-26 01:44:47 Re: WAL replay failure after file truncation(?)
Previous Message Tom Lane 2005-05-26 01:31:45 Re: Source Code Help Needed