Re: PANIC: heap_update_redo: no block - Mailing list pgsql-general

From Tom Lane
Subject Re: PANIC: heap_update_redo: no block
Date
Msg-id 17851.1142960868@sss.pgh.pa.us
Whole thread Raw
In response to Re: PANIC: heap_update_redo: no block  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
List pgsql-general
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> Can you patch the heap/heapam.c/heap_xlog_update() like this:

> - elog(PANIC, "heap_update_redo: no block");
> + elog(PANIC, "heap_update_redo: no block: target block: %u, relation
> length: %u",
> +    ItemPointerGetBlockNumber(&(xlrec->target.tid)),
> +    RelationGetNumberOfBlocks(reln));

> And restart your database to see what's the output?

While at it, you should extend the error message to include the relation
ID, so you have some idea which table is affected ... this is certainly
not a very informative message ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Thomas F. O'Connell"
Date:
Subject: Troubling On-line Backup LOG messages
Next
From: Tom Lane
Date:
Subject: Re: Troubling On-line Backup LOG messages