 if [ -f /var/lib/pgsql/data/PG_VERSION ]
    then
    set `cat /var/lib/pgsql/data/PG_VERSION | tr . ' '`
    if [[ $1 -le 9 ]] && [[ $2 -gt 0 ]];
       then
       printf "${PROBLEM_COLOR}A pre 9.0 version of the database was found.\nYou need to upgrade the data format to 9.0.\nRefer to the INSTALL file located in the tarball\nfor the upgrade procedure.\nThe install will not continue.""${DEFAULT_COLOR}\n"
      exit 1
    fi
 fi

