Re: read only connection

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: read only connection
Date: 2003-11-07 13:16:53
Message-ID: 20031107081653.6d19fae2.threshar@torgo.978.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, 06 Nov 2003 23:59:29 +0100
Gaetano Mendola <mendola(at)bigfoot(dot)com> wrote:

> Already asked, I try again:
>
> 7.4 give the feature to have transaction in
> read only mode, is it possible give permission
> to an user to perform db connection in read only
> mode ?
>

create user readonlyuser;
revoke insert on [table] from readonlyuser
revoke update on [table] from readonlyuser
revoke delete on [table] from readonlyuser

you could do it with a group as well.

>
>
> Regards
> Gaetano Mendola
>
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 5: Have you checked our
> extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html

--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Freddy Expósito Moreno 2003-11-07 13:17:29 Re: close connection
Previous Message Christian Brosig 2003-11-07 12:49:51 Out of buffer error