PostgreSQL: Die Rolle darf sich nicht anmelden

Ich habe Probleme, eine Verbindung zu meiner eigenen Postgres-Datenbank auf einem lokalen Server herzustellen. Ich habe einige ähnliche Probleme gegoogelt und mir dieses Handbuch ausgedachthttps: //help.ubuntu.com/stable/serverguide/postgresql.htm

so

pg_hba.conf sagt:

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 trust

dann erstelle ich einen Benutzer und weise ihm ein Passwort zu:

postgres=# create role asunotest;
CREATE ROLE
postgres=# alter role asunotest with encrypted password '1234';
ALTER ROLE

aber es lässt mich nicht rein:

-bash-4.2$ psql -h 127.0.0.1 -U asunotest
Password for user asunotest: 1234
psql: FATAL:  role "asunotest" is not permitted to log in

was könnte das Problem sein?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage