Re: NULL pg_database.datacl

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: Dominique Devienne <ddevienne(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: NULL pg_database.datacl
Date: 2023-03-20 12:18:56
Message-ID: 1626848226.954543.1679314736718@office.mailbox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On 20/03/2023 11:52 CET Dominique Devienne <ddevienne(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Will Roper 2023-03-20 12:46:19 Logical replication fails when adding multiple replicas
Previous Message Dávid Suchan 2023-03-20 11:58:34 Re: pg_upgrade Only the install user can be defined in the new cluster