pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff <threshar@torgo.978.org>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: read only connection
Date: Fri, 7 Nov 2003 08:16:53 -0500
Message-ID: <20031107081653.6d19fae2.threshar@torgo.978.org> (raw)
In-Reply-To: <3FAAD251.5090900@bigfoot.com>
References: <3FAAD251.5090900@bigfoot.com>

On Thu, 06 Nov 2003 23:59:29 +0100
Gaetano Mendola <mendola@bigfoot.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@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/



view thread (5+ messages)  latest in thread

Message-ID: <20031107081653.6d19fae2.threshar@torgo.978.org>
Permalink:  ../20031107081653.6d19fae2.threshar@torgo.978.org/
Also on:    postgresql.org/message-id/20031107081653.6d19fae2.threshar@torgo.978.org

 · 

reply

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-admin@postgresql.org
  Cc: threshar@torgo.978.org, mendola@bigfoot.com
  Subject: Re: read only connection
  In-Reply-To: <20031107081653.6d19fae2.threshar@torgo.978.org>
  References: <3FAAD251.5090900@bigfoot.com> <20031107081653.6d19fae2.threshar@torgo.978.org>

* 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