Fix diagnostic Postgresql