pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Milen A. Radev <milen@radev.net>
To: pgsql-admin@postgresql.org
Subject: Re: select only user
Date: Fri, 18 Jan 2008 15:54:46 +0200
Message-ID: <fmqb36$ole$1@ger.gmane.org> (raw)
In-Reply-To: <58370.46379.qm@web56404.mail.re3.yahoo.com>
References: <fmnrui$6pq$1@ger.gmane.org>
	<58370.46379.qm@web56404.mail.re3.yahoo.com>

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 there a 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




view thread (5+ messages)

Message-ID: <fmqb36$ole$1@ger.gmane.org>
Permalink:  ../fmqb36$ole$1@ger.gmane.org/
Also on:    postgresql.org/message-id/fmqb36$ole$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: milen@radev.net
  Subject: Re: select only user
  In-Reply-To: <fmqb36$ole$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox