pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedread only user
3+ messages / 3 participants
[nested] [flat]
* read only user
@ 2005-11-06 21:54 Colin Taylor <colin.taylor@gmail.com>
2005-11-10 02:45 ` Re: read only user Walter Kaan <wkaan@nswrdn.com.au>
0 siblings, 1 reply; 3+ messages in thread
From: Colin Taylor @ 2005-11-06 21:54 UTC (permalink / raw)
To: pgsql-admin
Hi there, Ive google and searched the lists but havent found detailed
instructions on how to give a user readly access to a schema. Is there a way
to do this with out explictly granting the SELECT privilege on every table?
Thanks and regards,
Colin.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: read only user
2005-11-06 21:54 read only user Colin Taylor <colin.taylor@gmail.com>
@ 2005-11-10 02:45 ` Walter Kaan <wkaan@nswrdn.com.au>
0 siblings, 0 replies; 3+ messages in thread
From: Walter Kaan @ 2005-11-10 02:45 UTC (permalink / raw)
To: Colin Taylor <colin.taylor@gmail.com>; +Cc: pgsql-admin
Hi Colin,
If its a one-off I usually do this in pgadmin3 by right clicking on the
schema and doing the grant wizard from there.
Regards
Walter
On Mon, 2005-11-07 at 10:54 +1300, Colin Taylor wrote:
> Hi there, Ive google and searched the lists but havent found detailed
> instructions on how to give a user readly access to a schema. Is there
> a way to do this with out explictly granting the SELECT privilege on
> every table?
>
> Thanks and regards,
> Colin.
--
Walter Kaan
IM/IT Manager
NSW Rural Doctors Network
www.nswrdn.com.au
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: read only user
@ 2005-11-11 23:35 Tomeh, Husam <htomeh@firstam.com>
0 siblings, 0 replies; 3+ messages in thread
From: Tomeh, Husam @ 2005-11-11 23:35 UTC (permalink / raw)
To: Colin Taylor <colin.taylor@gmail.com>; pgsql-admin
As a workaround, you can run this in psql :
select 'grant select on ' || tablename || ' to ' || 'smith ;'
from pg_tables where schemaname='public';
The above SQL will generate the DDL for all the tables in the schema
"public" for instance.
You may want to direct your output which may be something like :
grant select on table1 to smith ;
grant select on table2 to smith ;
grant select on foo to smith ;
to a file and then run the file in psql to execute the grant statements.
--
Husam
________________________________
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Colin Taylor
Sent: Sunday, November 06, 2005 1:54 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] read only user
Hi there, Ive google and searched the lists but havent found detailed
instructions on how to give a user readly access to a schema. Is there a
way to do this with out explictly granting the SELECT privilege on every
table?
Thanks and regards,
Colin.
**********************************************************************
This message contains confidential information intended only for the
use of the addressee(s) named above and may contain information that
is legally privileged. If you are not the addressee, or the person
responsible for delivering it to the addressee, you are hereby
notified that reading, disseminating, distributing or copying this
message is strictly prohibited. If you have received this message by
mistake, please immediately notify us by replying to the message and
delete the original message immediately thereafter.
Thank you. FADLD Tag
**********************************************************************
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-11-11 23:35 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-06 21:54 read only user Colin Taylor <colin.taylor@gmail.com>
2005-11-10 02:45 ` Walter Kaan <wkaan@nswrdn.com.au>
2005-11-11 23:35 Re: read only user Tomeh, Husam <htomeh@firstam.com>
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