RE: Wrong statistics for size of XLOG_SWITCH during pg_waldump.
От | |
---|---|
Тема | RE: Wrong statistics for size of XLOG_SWITCH during pg_waldump. |
Дата | |
Msg-id | b0a32c58414546b78b03f2c281f2f145@MP-MSGSS-MBX001.msg.nttdata.co.jp обсуждение исходный текст |
Ответ на | Re: Wrong statistics for size of XLOG_SWITCH during pg_waldump. (Kyotaro Horiguchi <horikyota.ntt@gmail.com>) |
Список | pgsql-hackers |
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
В списке pgsql-hackers по дате отправления: