pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: Grant permission to all objects of user A to user B
2+ messages / 2 participants
[nested] [flat]
* Re: Grant permission to all objects of user A to user B
@ 1970-01-01 00:00 Christoph Haller <ch@rodos.fzk.de>
parent: kumar <sgnerd@yahoo.com.sg>
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Haller @ 1970-01-01 00:00 UTC (permalink / raw)
To: sgnerd@yahoo.com.sg; +Cc: pgsql-sql
>
> Dear Friends,
>
> Postgres 7.3.2.
>
> I have an database with owner USRA who owns about 300 objects (tables and f=
> unctions). Now I want to give 'ALL' permission to all the objects of USRA t=
> o another database user USRB.
>
> If I use the grant i need to type all the objects as comma separated, like =
> the following
> booktown=3D# GRANT ALL ON customers, books, editions, publishers
> booktown-# TO manager;
> CHANGE
> Is there any other way do it.ThanksKumar
>
>
If you're using schemas you can grant the whole schema to the new user.
If not, the only alternative I know about is extract the table/function
names via \dt / \df commands within psql and use a script to grant the
privileges.
Regards, Christoph
^ permalink raw reply [nested|flat] 2+ messages in thread
* Grant permission to all objects of user A to user B
@ 2004-04-15 06:58 kumar <sgnerd@yahoo.com.sg>
0 siblings, 1 reply; 2+ messages in thread
From: kumar @ 2004-04-15 06:58 UTC (permalink / raw)
To: pgsql-sql
Dear Friends,
Postgres 7.3.2.
I have an database with owner USRA who owns about 300 objects (tables and functions). Now I want to give 'ALL' permission to all the objects of USRA to another database user USRB.
If I use the grant i need to type all the objects as comma separated, like the following
booktown=# GRANT ALL ON customers, books, editions, publishers
booktown-# TO manager;
CHANGEIs there any other way do it.ThanksKumar
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-04-15 06:58 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-15 06:58 Grant permission to all objects of user A to user B kumar <sgnerd@yahoo.com.sg>
1970-01-01 00:00 ` Christoph Haller <ch@rodos.fzk.de>
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