rapidloop / pgmetrics

Collect and display information and stats from a running PostgreSQL server
https://pgmetrics.io
Apache License 2.0
960 stars 65 forks source link

Scan error on column index 4, name "pid" #26

Closed nicolary closed 5 years ago

nicolary commented 5 years ago

Got this in the latest postgres

pgmetrics: pg_locks query failed: sql: Scan error on column index 4, name "pid": converting driver.Value type ("") to a int: invalid syntax

mdevan commented 5 years ago

Thanks for the report. The code doesn't handle the case when pg_locks.pid is NULL. Will fix.