Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A52A12E034F for ; Fri, 18 Jan 2008 09:55:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 40015-10 for ; Fri, 18 Jan 2008 09:54:59 -0400 (AST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id D3CF92E2EF0 for ; Fri, 18 Jan 2008 09:54:59 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JFrgM-0008Nz-2y for pgsql-admin@postgresql.org; Fri, 18 Jan 2008 13:54:54 +0000 Received: from pirus.securax.be ([213.16.46.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2008 13:54:54 +0000 Received: from milen by pirus.securax.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Jan 2008 13:54:54 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: "Milen A. Radev" Subject: Re: select only user Date: Fri, 18 Jan 2008 15:54:46 +0200 Lines: 34 Message-ID: References: <58370.46379.qm@web56404.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pirus.securax.be User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <58370.46379.qm@web56404.mail.re3.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/210 X-Sequence-Number: 27984 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 = ''; -[ RECORD 1 ]-+------------------------------------- rolname | 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