Skip to content

Wrong interpretation of maintenance_work_mem value #2

@foxxx0

Description

@foxxx0

Hey,

I've just started playing around with pgmetrics and noticed the following:

in postgresql.conf I have maintenance_work_mem = 128MB which seems to be internally set as value "131072", which means the base unit is KB and not B.

In the pgmetrics output (in the "Vacuum Progress" block) however this seems to be interpreted as B:
maintenance_work_mem | 131072 (128 KiB)

I am not sure if the memory values are internally always in KB (which would make the fix rather easy) or if depending on configuration settings / environment variable / postgres version this might require a lookup for the base unit before pretty-printing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions