add pg diagnose