Re: NULL pg_database.datacl

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: NULL pg_database.datacl
Дата
Msg-id 1626848226.954543.1679314736718@office.mailbox.org
обсуждение исходный текст
Ответ на NULL pg_database.datacl  (Dominique Devienne <ddevienne@gmail.com>)
Ответы Re: NULL pg_database.datacl
Список pgsql-general
> On 20/03/2023 11:52 CET Dominique Devienne <ddevienne@gmail.com> wrote:
>
> Hi. I'm surprised, I thought ACLs would never be empty for a database.
> Does that mean nobody can connect to this database?
> I guess SUPERUSER and/or its datDBA can?
> What does a NULL AclItem[] mean exactly?

It means that the object has default privileges (before any GRANT or REVOKE
is executed).  For databases this means full privileges for the database owner
and the CONNECT and TEMPORARY privileges for PUBLIC.  So any user can connect
if allowed by pg_hba.conf.

https://www.postgresql.org/docs/current/ddl-priv.html

--
Erik



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