In this article you will know how to fix this error:
psql: FATAL: Ident authentication failed for user "username"which happens when you try to connect as follows:
psql -U username -h 127.0.0.1 -d postgres
psql: FATAL: Ident authentication failed for user "username"which happens when you try to connect as follows:
psql -U username -h 127.0.0.1 -d postgres
sudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm(for the list of all options, check this link: https://yum.postgresql.org/repopackages.php)
ERROR: column "blabla" is of type boolean but expression is of type integer
pg_dump: server version: 9.4.7; pg_dump version: 9.2.15
pg_dump: aborting because of server version mismatch
sudo rpm -Uvh https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-2.noarch.rpm
sudo yum install postgresql94
find / -name pg_dump -type f 2>/dev/null
/usr/pgsql-9.4/bin/pg_dump -h {dbhost} -U {dbuser} {dbname} > {dbname}.sql