From ef08ca113fe302b9ddf298964756eadcd41e77a1 Mon Sep 17 00:00:00 2001 From: Amit Kapila Date: Mon, 13 Apr 2020 15:31:16 +0530 Subject: Cosmetic fixups for WAL usage work. Reported-by: Justin Pryzby and Euler Taveira Author: Justin Pryzby and Julien Rouhaud Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/CAB-hujrP8ZfUkvL5OYETipQwA=e3n7oqHFU=4ZLxWS_Cza3kQQ@mail.gmail.com --- src/backend/commands/explain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/commands/explain.c') diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index f3c8da1e01b..7ae61316760 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -3343,7 +3343,7 @@ show_wal_usage(ExplainState *es, const WalUsage *usage) if (es->format == EXPLAIN_FORMAT_TEXT) { /* Show only positive counter values. */ - if ((usage->wal_records > 0) || (usage->wal_num_fpw > 0) || + if ((usage->wal_records > 0) || (usage->wal_fpw > 0) || (usage->wal_bytes > 0)) { ExplainIndentText(es); @@ -3352,9 +3352,9 @@ show_wal_usage(ExplainState *es, const WalUsage *usage) if (usage->wal_records > 0) appendStringInfo(es->str, " records=%ld", usage->wal_records); - if (usage->wal_num_fpw > 0) + if (usage->wal_fpw > 0) appendStringInfo(es->str, " full page writes=%ld", - usage->wal_num_fpw); + usage->wal_fpw); if (usage->wal_bytes > 0) appendStringInfo(es->str, " bytes=" UINT64_FORMAT, usage->wal_bytes); @@ -3366,7 +3366,7 @@ show_wal_usage(ExplainState *es, const WalUsage *usage) ExplainPropertyInteger("WAL records", NULL, usage->wal_records, es); ExplainPropertyInteger("WAL full page writes", NULL, - usage->wal_num_fpw, es); + usage->wal_fpw, es); ExplainPropertyUInteger("WAL bytes", NULL, usage->wal_bytes, es); } -- cgit v1.2.3