Postgresql upgrade from 9.2 to 9.6 on Ambari 2.7 and HDP3.0
Hi,
I'm trying to update the PostgreSQL from 9.2.24 to 9.6. I tried the following
Took backup of the DB with following command.
pg_dumpall > outputfile
Once the backup is done I stopped the service and Rename the pgsql directory under /var/lib/pgsql/
Updated the postgres with the following command :
yum install postgresql96-server postgresql96.
After the installation the new directory got created /var/lib/pgsql/9.6/. I ran the initdb command to create the cluster. Restored the old pg_hba.conf and postgresql.conf files from the backup directory. Started the postgres service with the following command:
/usr/pgsql-9.6/bin/pg_ctl start -D /var/lib/pgsql/9.6/data
Once the service was up I restored the DB with the following command:
/usr/pgsql-9.6/bin/psql -d postgres -f outputfile
The DB restoration done but still while starting the ambari server I'm getting the error Ident authentication failed for user "ambari"
I have the doubt that is the upgrade properly done I mean the ambari server is using the 9.6 postgresql version that we installed. I have a doubt that still its using the old version when I give yum list postgresql it shows only the 9.2.4 version as installed.
Can anyone help on this issue I fighting with this for 2 days.

