From: Robby Russell <rrussell@commandprompt.com>
To: Joe Nilson Zegarra Galvez <nzegarra@kolareal.net>
Cc: Lista PG-PHP <pgsql-php@postgresql.org>
Subject: Re: about psql user
Date: Wed, 12 May 2004 07:28:44 -0700
Message-ID: <40A2349C.9020503@commandprompt.com> (raw)
In-Reply-To: <1084369789.7509.4.camel@dune.kolareal.net>
References: <1084369789.7509.4.camel@dune.kolareal.net>
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rrussell@commandprompt.com, nzegarra@kolareal.net
Subject: Re: about psql user
In-Reply-To: <40A2349C.9020503@commandprompt.com>
References: <1084369789.7509.4.camel@dune.kolareal.net> <40A2349C.9020503@commandprompt.com>
* 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