Re: select only user - Mailing list pgsql-admin

From Milen A. Radev
Subject Re: select only user
Date
Msg-id fmqb36$ole$1@ger.gmane.org
Whole thread Raw
In response to Re: select only user  (Jessica Richard <rjessil@yahoo.com>)
List pgsql-admin
Jessica Richard написа:
> Thanks!!!
> "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
therea table that keeps this kind of info for all users? 
[...]


SELECT * FROM pg_roles where rolname = '<username>';


-[ RECORD 1 ]-+-------------------------------------
rolname       | <username>
rolsuper      | f
rolinherit    | t
rolcreaterole | f
rolcreatedb   | f
rolcatupdate  | f
rolcanlogin   | t
rolconnlimit  | -1
rolpassword   | ********
rolvaliduntil |
rolconfig     | {default_transaction_read_only=true}
oid           | 53531114


(http://www.postgresql.org/docs/current/static/database-roles.html)



--
Milen A. Radev

pgsql-admin by date:

Previous
From: Jessica Richard
Date:
Subject: Re: select only user
Next
From: Tom Lane
Date:
Subject: Re: Cannot bind socket