Behavior for crash recovery when it detects a corrupt WAL record

From: Amit Kapila <amit(dot)kapila(at)huawei(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Behavior for crash recovery when it detects a corrupt WAL record
Date: 2012-10-09 13:42:20
Message-ID: 00b201cda623$e8528240$b8f786c0$@kapila@huawei.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I have observed that currently during recovery, while it applies the WAL
records even if it detects that there is a corrupt record

by crc validation, it proceeds.

Basically ReadRecord(), returns NULL in such cases which makes the behavior
same as it has reached end of WAL.

After that server get started and user can perform operations normally.

However ITSM that this is a problem as user might loose some committed data.

Is there any particular reason for this behavior?

With Regards,

Amit Kapila.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-10-09 13:52:03 Re: pgxs problem...
Previous Message Amit Kapila 2012-10-09 13:04:31 Re: [HACKERS] BUG #7534: walreceiver takes long time to detect n/w breakdown