How to grant a user read-only access to a database? - Mailing list pgsql-general

From Antonio Goméz Soto
Subject How to grant a user read-only access to a database?
Date
Msg-id 4B8CF297.4040404@gmail.com
Whole thread Raw
Responses Re: How to grant a user read-only access to a database?
List pgsql-general
Hi,

I tried this:

names=# grant select on database names to spice;
ERROR:  invalid privilege type SELECT for database

The documentation seems to imply I need to grant SELECT
to each table separately. That's a lot of work, and what if
new tables are created?

Thanks,
Antonio

pgsql-general by date:

Previous
From: Asher Hoskins
Date:
Subject: to_timestamp() and quarters
Next
From: Thom Brown
Date:
Subject: Re: How to grant a user read-only access to a database?