Commit 609a63fd authored by Tom Lane's avatar Tom Lane

Improve printing of XLOG_HEAP_NEWPAGE records to include the forknum.

parent e55e6ecf
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.290 2010/05/02 22:28:05 tgl Exp $ * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.291 2010/05/02 22:37:43 tgl Exp $
* *
* *
* INTERFACE ROUTINES * INTERFACE ROUTINES
...@@ -4897,9 +4897,10 @@ heap_desc(StringInfo buf, uint8 xl_info, char *rec) ...@@ -4897,9 +4897,10 @@ heap_desc(StringInfo buf, uint8 xl_info, char *rec)
{ {
xl_heap_newpage *xlrec = (xl_heap_newpage *) rec; xl_heap_newpage *xlrec = (xl_heap_newpage *) rec;
appendStringInfo(buf, "newpage: rel %u/%u/%u; blk %u", appendStringInfo(buf, "newpage: rel %u/%u/%u; fork %u, blk %u",
xlrec->node.spcNode, xlrec->node.dbNode, xlrec->node.spcNode, xlrec->node.dbNode,
xlrec->node.relNode, xlrec->blkno); xlrec->node.relNode, xlrec->forknum,
xlrec->blkno);
} }
else if (info == XLOG_HEAP_LOCK) else if (info == XLOG_HEAP_LOCK)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment