Re: NULL pg_database.datacl - Mailing list pgsql-general

From Erik Wienhold
Subject Re: NULL pg_database.datacl
Date
Msg-id 1626848226.954543.1679314736718@office.mailbox.org
Whole thread Raw
In response to NULL pg_database.datacl  (Dominique Devienne <ddevienne@gmail.com>)
Responses Re: NULL pg_database.datacl  (Dominique Devienne <ddevienne@gmail.com>)
List 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 by date:

Previous
From: Dávid Suchan
Date:
Subject: Re: pg_upgrade Only the install user can be defined in the new cluster
Next
From: Will Roper
Date:
Subject: Logical replication fails when adding multiple replicas