Skip site navigation (1) Skip section navigation (2)

Re: select only user

From: Jessica Richard <rjessil(at)yahoo(dot)com>
To: "Milen A(dot) Radev" <milen(at)radev(dot)net>, pgsql-admin(at)postgresql(dot)org
Subject: Re: select only user
Date: 2008-01-18 13:46:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
"ALTER USER username SET default_transaction_read_only to true" worked. 

One more question:

where do I see the current setting of "default_transacton_read_only (true for false) for each user on the system? Is there a table that keeps this kind of info for all users?

Thanks again,

"Milen A. Radev" <milen(at)radev(dot)net> wrote: Milen A. Radev написа:
> Jessica Richard написа:
>> I created a user and granted only "select" to this user so that  this 
>> user can only select the tables on a production system. But by 
>> default, this user can also CREATE TABLE successfully....
>> How can I revoke this "create table" privilege (and possible others) 
>> and limit this user to only the permissions granted by me?
> Revoke the "create" privilege on the "public" schema (or any other 
> schema you've created) from 'public' (that's special "role"). Also 
> revoke the "create" privilege on the database(s) in question from the 
> same special role 'public' to prevent creation of new schemas.
> More here -

Almost forgot - there is another way if the role in question would be 

ALTER USER username SET default_transaction_read_only to true;


Milen A. Radev

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at


Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

In response to


pgsql-admin by date

Next:From: Milen A. RadevDate: 2008-01-18 13:54:46
Subject: Re: select only user
Previous:From: Suresh Gupta VGDate: 2008-01-18 13:15:17
Subject: Cannot bind socket

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group