Re: PANIC: heap_update_redo: no block

From: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PANIC: heap_update_redo: no block
Date: 2006-03-22 03:18:40
Message-ID: dvqfso$1mgg$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote
>
> 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 ...
>

Exactly. Please use the following version:

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

BTW: I just realized that there is another (better) way to do so is to
enable WAL_DEBUG in xlog.h and SET XLOG_DEBUG=true. And that's why we don't
have much error message in xlog redo.

Regards,
Qingqing

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-03-22 03:26:07 Re: ambuild parameters
Previous Message Trent Shipley 2006-03-22 02:40:38 Modular Type Libraries: was A real currency type

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-03-22 03:31:00 Re: Modular Type Libraries: was A real currency type
Previous Message Trent Shipley 2006-03-22 02:40:38 Modular Type Libraries: was A real currency type