Fix a bug that caused postgres not to restart when changed