From: | Holger Jakobs <holger(at)jakobs(dot)com> |
---|---|
To: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | postgres (superuser) cannot connect to database |
Date: | 2022-11-23 12:41:39 |
Message-ID: | 82e7c3a1-7ab8-0b2e-910e-26946f27dde6@jakobs.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
How come a user who has issued "set role to postgres", so that the
current user is postgres, cannot connect to a database?
Are superuser rights not sufficient?
student(at)[local]:5434//~:=# \c einkauf
Verbindung zum Server auf Socket »/var/run/postgresql/.s.PGSQL.5434«
fehlgeschlagen: FATAL: keine Berechtigung für Datenbank »einkauf«
DETAIL: Benutzer hat das CONNECT-Privileg nicht.
Vorherige Verbindung wurde behalten
student(at)[local]:5434//~:=# grant connect on database einkauf to postgres;
GRANT
student(at)[local]:5434//~:=# \c einkauf
Sie sind jetzt verbunden mit der Datenbank »einkauf« als Benutzer »student«.
student(at)[local]:5434//einkauf:=>
Who can explain this? It's version 15 I'm using for the first time,
haven't checked with oder versions.
Best Regards,
Holger
--
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2022-11-23 14:14:01 | Re: postgres (superuser) cannot connect to database |
Previous Message | Franz Xaver | 2022-11-23 11:44:17 | Default Sort order Problem - Newbie ;-) |