In postgreSQL's /var/lib/pgsql/data/pg_hba.conf
trust
and ident
can be set as method
e.g. like so.
# TYPE DATABASE USER CIDR-ADDRESS METHOD
local all postgres trust
host all postgres 127.0.0.1/32 trust
I was under the impression that the difference of the two was with trust
I as root
could do
psql postgres
and with ident
I had to
sudo -u postgres psql postgres
However I cannot get the first command to work even with trust
.
Question
Can someone explain what the difference is of trust
and ident
?