Thanks for the reply. > Mr.Horiguchi. I reviewed the patch and found some problems.
>+ if(startSegNo != endSegNo) >+ else if(record->ReadRecPtr / XLOG_BLCKSZ != >+ if(rmid == RM_XLOG_ID && info == XLOG_SWITCH) >+ if(ri == RM_XLOG_ID) >+ if(info == XLOG_SWITCH) You need to put a space after the "if". >@@ -24,6 +24,7 @@ >#include "common/logging.h" >#include "getopt_long.h" >#include "rmgrdesc.h" >+#include "catalog/pg_control.h" I think the include statements should be arranged in alphabetical order. >+ info = (rj << 4) & ~XLR_INFO_MASK; >+ if(info == XLOG_SWITCH) >+ XLogDumpStatsRow(psprintf("XLOG/SWITCH_JUNK"), >+ 0, total_count, stats->junk_size, total_rec_len, >+ 0, total_fpi_len, stats->junk_size, total_len); Can't be described in the same way as "XLogDumpStatsRow(psprintf("%s/%s", desc->rm_name, id)..."? Only this part looks strange. Why are the "count" and "fpi_len" fields 0? I think you need to improve the duplicate output in column "XLOG/SWITCH_JUNK". Regards, Shinya Kato