So, I have installed PostgreSQL 10.1 in my Linux Manjaro 17.1.1 using yaourt installer package.
yaourt -S postgresql
From here I can't connect the database locally, so, when searching I found this stackoverflow posting which tells me that I should find pg_hba.conf
file (step 3)
I tried to find the pg_hba.conf
file using this command in terminal
sudo find / -name *pg_hba*`
but still can't find the file, instead I only found a sample file here:
/usr/share/postgresql/pg_hba.conf.sample
I tried to reinstall the package using yaourt again, but still it doesn't work. Am I missing something?
Thanks
UPDATE
So, here is the error that I get when trying to connect to the database.
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/run/postgresql/.s.PGSQL.5432"?