From: Erik Wienhold <ewie@ewie.name>
To: Dominique Devienne <ddevienne@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: NULL pg_database.datacl
Date: Mon, 20 Mar 2023 13:18:56 +0100 (CET)
Message-ID: <1626848226.954543.1679314736718@office.mailbox.org> (raw)
In-Reply-To: <CAFCRh-83C18PKA7b=NNcxLF1FhBksot2v34ve0hR4ohrBAyL-w@mail.gmail.com>
References: <CAFCRh-83C18PKA7b=NNcxLF1FhBksot2v34ve0hR4ohrBAyL-w@mail.gmail.com>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ewie@ewie.name, ddevienne@gmail.com
Subject: Re: NULL pg_database.datacl
In-Reply-To: <1626848226.954543.1679314736718@office.mailbox.org>
References: <CAFCRh-83C18PKA7b=NNcxLF1FhBksot2v34ve0hR4ohrBAyL-w@mail.gmail.com> <1626848226.954543.1679314736718@office.mailbox.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox