grant connect to all databases - Mailing list pgsql-general

From Matt Zagrabelny
Subject grant connect to all databases
Date
Msg-id CAOLfK3Vj-PFBJi28y1170ZP3dGeW2qpG_8_9CbaJWvEgXQ8-jQ@mail.gmail.com
Whole thread Raw
Responses Re: grant connect to all databases
List pgsql-general
Hello,

I'd like to have a read-only user for all databases.

I found the pg_read_all_data role predefined role, which I granted to my RO user:

GRANT pg_read_all_data TO ro_user;

...but I cannot connect to my database(s).

I'd like to not have to iterate over all the databases and "GRANT CONNECT...".

Is there a way to do this with just one GRANT or equivalent command?

Thanks for any help!

-m

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How batch processing works
Next
From: "David G. Johnston"
Date:
Subject: Re: grant connect to all databases