Skip to content

Commit 1980cef

Browse files
NikolaySclaude
andcommitted
Fix binary units usage in checkpoint statistics
- Change "Checkpoint MB/sec" to "Checkpoint MiB/sec" - Complies with project binary units standards (base-2) - Calculation uses 1024.0 * 1024, so MiB is accurate - Applies to both PostgreSQL 17+ and <17 versions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4c3bc28 commit 1980cef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/0_node.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ select 'Forced Checkpoints', (
5858
from pg_stat_checkpointer
5959
)
6060
union all
61-
select 'Checkpoint MB/sec', (
61+
select 'Checkpoint MiB/sec', (
6262
select round((nullif(buffers_written::numeric, 0) /
6363
((1024.0 * 1024 /
6464
(current_setting('block_size')::numeric))
@@ -75,7 +75,7 @@ select 'Forced Checkpoints', (
7575
from pg_stat_bgwriter
7676
)
7777
union all
78-
select 'Checkpoint MB/sec', (
78+
select 'Checkpoint MiB/sec', (
7979
select round((nullif(buffers_checkpoint::numeric, 0) /
8080
((1024.0 * 1024 /
8181
(current_setting('block_size')::numeric))

0 commit comments

Comments
 (0)