Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id F2AFD9FB912 for ; Wed, 21 Mar 2007 14:52:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 65379-10 for ; Wed, 21 Mar 2007 14:51:56 -0300 (ADT) X-Greylist: delayed 00:05:00.802515 by SQLgrey-1.7.4 Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by postgresql.org (Postfix) with ESMTP id 3E4309FB7AC for ; Wed, 21 Mar 2007 14:51:56 -0300 (ADT) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Wed, 21 Mar 2007 13:46:54 -0400 id 0005643E.46016F8E.00016636 Received: from Internal Mail-Server by mx01 (envelope-from bseklecki@collaborativefusion.com) with RC4-MD5 encrypted SMTP; 21 Mar 2007 12:45:43 -0500 Subject: Re: Read-only access to a database From: "Brian A. Seklecki" To: "Morten W. Petersen" Cc: pgsql-admin@postgresql.org In-Reply-To: <46016071.3000304@nidelven-it.no> References: <46016071.3000304@nidelven-it.no> Organization: Collaborative Fusion, Inc. Date: Wed, 21 Mar 2007 13:46:53 -0400 Message-Id: <1174499213.24543.356.camel@soundwave.pgh.priv.collaborativefusion.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/150 X-Sequence-Number: 24974 Wouldn't you just set read-only ACLs for that role on all of the objects in the database in question? ~BAS On Wed, 2007-03-21 at 17:42 +0100, Morten W. Petersen wrote: > Hi, > > I'd like to create a user that has read-only access to > a database. > > I've read the docs and fumbled around a bit (even > tried to use phppgadmin) - but nothing works. > > "CREATE USER username" is about as far as I've > gotten. Which other commands would I have to > use to enable read-only access to a database? > > Thanks, > > Morten > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org -- Brian A. Seklecki Collaborative Fusion, Inc. IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.