changes for upgrade scenario and centos postgres fresh install