postgres (superuser) cannot connect to database

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема postgres (superuser) cannot connect to database
Дата
Msg-id 82e7c3a1-7ab8-0b2e-910e-26946f27dde6@jakobs.com
обсуждение исходный текст
Ответы Re: postgres (superuser) cannot connect to database  (Laurenz Albe <laurenz.albe@cybertec.at>)
Re: postgres (superuser) cannot connect to database  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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@[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@[local]:5434//~:=# grant connect on database einkauf to postgres;
GRANT
student@[local]:5434//~:=# \c einkauf
Sie sind jetzt verbunden mit der Datenbank »einkauf« als Benutzer »student«.
student@[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


Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Franz Xaver
Дата:
Сообщение: Default Sort order Problem - Newbie ;-)
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: postgres (superuser) cannot connect to database