Re: grant connect to all databases - Mailing list pgsql-general

From Matt Zagrabelny
Subject Re: grant connect to all databases
Date
Msg-id CAOLfK3VmUpuPzqXTqr1So7WrqszVfUzkuGEOAk0gvStZ-aCXhA@mail.gmail.com
Whole thread Raw
In response to Re: grant connect to all databases  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: grant connect to all databases
List pgsql-general


On Sat, Oct 5, 2024 at 3:12 PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 10/5/24 11:24, Matt Zagrabelny wrote:
>

>
> Nope. I create the role (via puppet) and then add the GRANT
> pg_read_all_data TO (via puppet).
>

> What is \drgS? I don't believe I have that.

That is available in Postgres 16+, you must running be in an instance of
Postgres before that.

Ah. Yup!
 


>   'CREATE ROLE "alice" ENCRYPTED PASSWORD \'$NEWPGPASSWD\' LOGIN
> NOCREATEROLE NOCREATEDB NOSUPERUSER  CONNECTION LIMIT -1'
> GRANT pg_read_all_data TO alice;
>

>   ...but I still cannot connect:
>
> $ psql -d test -U alice
> psql: error: connection to server on socket
> "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  permission denied
> for database "test"
> DETAIL:  User does not have CONNECT privilege.

Something is going on in the background.

Agreed.
 

What version of Postgres?


psql (15.8 (Debian 15.8-0+deb12u1))

 
Where did you install it from or where are you running it?

Installed from Debian repos via apt via puppet.

 
Still digging...

-m

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Repeatable Read Isolation Level "transaction start time"
Next
From: Adrian Klaver
Date:
Subject: Re: Repeatable Read Isolation Level "transaction start time"