Properly restart postgresql