debugging pg::error