pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedread only connection
5+ messages / 3 participants
[nested] [flat]
* read only connection
@ 2003-11-06 22:59 Gaetano Mendola <mendola@bigfoot.com>
2003-11-06 23:02 ` Re: read only connection Bruno Wolff III <bruno@wolff.to>
2003-11-07 13:16 ` Re: read only connection Jeff <threshar@torgo.978.org>
0 siblings, 2 replies; 5+ messages in thread
From: Gaetano Mendola @ 2003-11-06 22:59 UTC (permalink / raw)
To: pgsql-admin
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 ?
Regards
Gaetano Mendola
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: read only connection
2003-11-06 22:59 read only connection Gaetano Mendola <mendola@bigfoot.com>
@ 2003-11-06 23:02 ` Bruno Wolff III <bruno@wolff.to>
1 sibling, 0 replies; 5+ messages in thread
From: Bruno Wolff III @ 2003-11-06 23:02 UTC (permalink / raw)
To: Gaetano Mendola <mendola@bigfoot.com>; +Cc: pgsql-admin
On Thu, Nov 06, 2003 at 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 ?
Not by connection, but if they don't have write access to an object they
won't be able to change it.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: read only connection
2003-11-06 22:59 read only connection Gaetano Mendola <mendola@bigfoot.com>
@ 2003-11-07 13:16 ` Jeff <threshar@torgo.978.org>
2003-11-07 18:53 ` Re: read only connection Gaetano Mendola <mendola@bigfoot.com>
1 sibling, 1 reply; 5+ messages in thread
From: Jeff @ 2003-11-07 13:16 UTC (permalink / raw)
To: Gaetano Mendola <mendola@bigfoot.com>; +Cc: pgsql-admin
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/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: read only connection
2003-11-06 22:59 read only connection Gaetano Mendola <mendola@bigfoot.com>
2003-11-07 13:16 ` Re: read only connection Jeff <threshar@torgo.978.org>
@ 2003-11-07 18:53 ` Gaetano Mendola <mendola@bigfoot.com>
2003-11-07 19:04 ` Re: read only connection Bruno Wolff III <bruno@wolff.to>
0 siblings, 1 reply; 5+ messages in thread
From: Gaetano Mendola @ 2003-11-07 18:53 UTC (permalink / raw)
To: pgsql-admin; +Cc: Jeff <threshar@torgo.978.org>
Jeff wrote:
> 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
I know but is not system/tables wide.
Each time that a table is created I shall remember
to revoke the permission, what I was looking for
was an option to insert into pg_hba.conf
Regards
Gaetano Mendola
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: read only connection
2003-11-06 22:59 read only connection Gaetano Mendola <mendola@bigfoot.com>
2003-11-07 13:16 ` Re: read only connection Jeff <threshar@torgo.978.org>
2003-11-07 18:53 ` Re: read only connection Gaetano Mendola <mendola@bigfoot.com>
@ 2003-11-07 19:04 ` Bruno Wolff III <bruno@wolff.to>
0 siblings, 0 replies; 5+ messages in thread
From: Bruno Wolff III @ 2003-11-07 19:04 UTC (permalink / raw)
To: Gaetano Mendola <mendola@bigfoot.com>; +Cc: pgsql-admin; Jeff <threshar@torgo.978.org>
On Fri, Nov 07, 2003 at 19:53:42 +0100,
Gaetano Mendola <mendola@bigfoot.com> wrote:
>
> I know but is not system/tables wide.
> Each time that a table is created I shall remember
> to revoke the permission, what I was looking for
> was an option to insert into pg_hba.conf
When you create a table you have to give permission for other people to
use it at all. So just give select access instead of all access.
You can even give this to a group (or public) so that you can add more
users who should have read only access without having to change the
access rights for each table.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-11-07 19:04 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-06 22:59 read only connection Gaetano Mendola <mendola@bigfoot.com>
2003-11-06 23:02 ` Bruno Wolff III <bruno@wolff.to>
2003-11-07 13:16 ` Jeff <threshar@torgo.978.org>
2003-11-07 18:53 ` Gaetano Mendola <mendola@bigfoot.com>
2003-11-07 19:04 ` Bruno Wolff III <bruno@wolff.to>
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