please check the lastest comment at https://github.com/prometheus-community/postgres_exporter/issues/495#issuecomment-1485349498 Essentially the problem is fixed in 0.10.0 but not in 0.12.0, possibly due to https://github.com/prometheus-community/postgres_exporter/pull/747 ? If it can be confirmed, please reopen the issue. Thank you so much.