[vagrant@localhost ipa]$ yum list installed | grep postgres
postgresql.x86_64                  8.4.20-8.el6_9                    @base
postgresql-devel.x86_64            8.4.20-8.el6_9                    @base
postgresql-libs.x86_64             8.4.20-8.el6_9                    @base
postgresql96.x86_64                9.6.15-1PGDG.rhel6                @pgdg96
postgresql96-devel.x86_64          9.6.15-1PGDG.rhel6                @pgdg96
postgresql96-libs.x86_64           9.6.15-1PGDG.rhel6                @pgdg96
postgresql96-server.x86_64         9.6.15-1PGDG.rhel6                @pgdg96  
psqlが8.4を読み込んでいるため、「Your PostgreSQL is too old」のエラーが出る
まず、psqlにログインして、実行ファイルを探します
[vagrant@localhost ipa]$ su – postgres
パスワード:
-bash-4.1$ which -a psql
/usr/bin/psql
 
					 
