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

From Tom Lane
Subject Re: How to grant a user read-only access to a database?
Date
Msg-id 24543.1267629586@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to grant a user read-only access to a database?  (Kevin Kempter <kevink@consistentstate.com>)
Responses Re: How to grant a user read-only access to a database?  (Kevin Kempter <kevink@consistentstate.com>)
List pgsql-general
Kevin Kempter <kevink@consistentstate.com> writes:
> I believe all you have to do is this to create a read only user:
> create user ro_user with password 'passwd';
> alter user ro_user set default_transaction_read_only = true;

You do realize the user can just unset that again?

            regards, tom lane

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: LDAP Login Problem
Next
From: Tom Lane
Date:
Subject: Re: bug in function arguments "recognition"