PANIC: heap_update_redo: no block

From: "Alex bahdushka" <bahdushka(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PANIC: heap_update_redo: no block
Date: 2006-03-19 06:55:35
Message-ID: e0bf43760603182255q7eee6109n3f2afa0b10d3af71@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Hi.

Upon rebooting one of our main production database servers, we were
greeted with this:

(@)<2006-03-18 23:30:32.687 MST>[3791]LOG: database system was
interrupted while in recovery at 2006-03-18 23:30:26 MST
(@)<2006-03-18 23:30:32.687 MST>[3791]HINT: This probably means that
some data is corrupted and you will have to use the last backup for
recovery.
(@)<2006-03-18 23:30:32.688 MST>[3791]LOG: checkpoint record is at D/1919D5F0
(@)<2006-03-18 23:30:32.688 MST>[3791]LOG: redo record is at
D/191722C8; undo record is at 0/0; shutdown FALSE
(@)<2006-03-18 23:30:32.688 MST>[3791]LOG: next transaction ID:
81148900; next OID: 16566476
(@)<2006-03-18 23:30:32.688 MST>[3791]LOG: next MultiXactId: 1; next
MultiXactOffset: 0
(@)<2006-03-18 23:30:32.689 MST>[3791]LOG: database system was not
properly shut down; automatic recovery in progress
(@)<2006-03-18 23:30:33.032 MST>[3791]LOG: redo starts at D/191722C8
(@)<2006-03-18 23:30:33.035 MST>[3791]PANIC: heap_update_redo: no block
(@)<2006-03-18 23:30:33.036 MST>[3790]LOG: startup process (PID 3791)
was terminated by signal 6
(@)<2006-03-18 23:30:33.036 MST>[3790]LOG: aborting startup due to
startup process failure

As far as i know the postgresql was shutdown properly before the
reboot (pg_ctl stop -m fast). Though im not positive, I was just
brought in when they couldn't figure out why postgresql would not
start. Any ideas as to how this happened or how to fix it?

Right now im copying over the database, and then going to try
pg_resetxlog. Just to make sure, the only possible lost data are
things that are/would be in the xlog right? So i dont need to go
looking at all the tables, just ones I know were modified then.

Are there any other solutions that dont involve possibly loosing data?
(Yes I know backups, unfortunately the last back up was about 2 hours
ago and is not as up to date as i would like)

Just curious, ive also been investigating pitr for instead of doing
backups every 2 hours. If this problem were to surface when i was
using pitr as a backup solution, would all my data then be hosed (or
at least what pg_resetlog can not restore)?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Axel Straschil 2006-03-19 09:40:29 "\set AUTOCOMMIT off" has affect
Previous Message Alain BAUDHUIN 2006-03-19 00:18:50 pg_dump cross-version support

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-03-19 09:56:46 Re: PANIC: heap_update_redo: no block
Previous Message Alvaro Herrera 2006-03-19 01:34:32 Re: PostgreSQL Anniversary Proposals -- Important Update