mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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
This commit is contained in:
@@ -676,7 +676,7 @@ heap_vacuum_rel(Relation onerel, VacuumParams *params,
|
||||
_("WAL usage: %ld records, %ld full page writes, "
|
||||
UINT64_FORMAT " bytes"),
|
||||
walusage.wal_records,
|
||||
walusage.wal_num_fpw,
|
||||
walusage.wal_fpw,
|
||||
walusage.wal_bytes);
|
||||
|
||||
ereport(LOG,
|
||||
|
@@ -1258,7 +1258,7 @@ XLogInsertRecord(XLogRecData *rdata,
|
||||
{
|
||||
pgWalUsage.wal_bytes += rechdr->xl_tot_len;
|
||||
pgWalUsage.wal_records++;
|
||||
pgWalUsage.wal_num_fpw += num_fpw;
|
||||
pgWalUsage.wal_fpw += num_fpw;
|
||||
}
|
||||
|
||||
return EndPos;
|
||||
|
Reference in New Issue
Block a user