X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 145A5D1E21E for ; Wed, 12 May 2004 11:29:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 69238-05 for ; Wed, 12 May 2004 11:29:09 -0300 (ADT) Received: from hosting.commandprompt.com (128.commandprompt.com [207.173.200.128]) by svr1.postgresql.org (Postfix) with ESMTP id BD9C7D1E235 for ; Wed, 12 May 2004 11:29:04 -0300 (ADT) Received: from [192.168.1.45] (dsl093-038-087.pdx1.dsl.speakeasy.net [66.93.38.87]) (authenticated) by hosting.commandprompt.com (8.11.6/8.11.6) with ESMTP id i4CESLp12262; Wed, 12 May 2004 07:28:21 -0700 Message-ID: <40A2349C.9020503@commandprompt.com> Date: Wed, 12 May 2004 07:28:44 -0700 From: Robby Russell Organization: Command Prompt, Inc. User-Agent: Mozilla Thunderbird 0.6 (X11/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Nilson Zegarra Galvez Cc: Lista PG-PHP Subject: Re: about psql user References: <1084369789.7509.4.camel@dune.kolareal.net> In-Reply-To: <1084369789.7509.4.camel@dune.kolareal.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/16 X-Sequence-Number: 2735 Joe Nilson Zegarra Galvez typed this on 05/12/2004 06:49 AM: > sorry, if its not a quiestion for the list, but i want know if is > posible config one user with readonly access to a DB in postgresql, i'm > seeking it in the manual and only found a entry in a Postgre95 ver 0.3 > manual :-( nothing in the 7.4.2 documentation, i'm devel an app with php > and pgsql and some users only can make selects without inserts, deletes > or updates and this is the reason for the readonly user. > > Thanks for your help. > > Regards > > Joe Nilson Try this: http://developer.postgresql.org/docs/postgres/sql-grant.html GRANT SELECT... -RObby -- Robby Russell, | Sr. Administrator / Lead Programmer Command Prompt, Inc. | http://www.commandprompt.com rrussell@commandprompt.com | Telephone: (503) 667.4564