Set Privileges on All Tables (or Sequences) at Once

Set Privileges on All Tables (and/or Sequences) at
Once

Can this be done? or am i stuck doing this on each
table and sequence whenever i create a new group?

tia...


=09
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
operationsengineer1 [ Fr, 07 Oktober 2005 18:55 ] [ ID #1000916 ]

Re: Set Privileges on All Tables - Wrong List - Sorry

Wrong Mailing List

--- operationsengineer1 [at] yahoo.com wrote:

> Set Privileges on All Tables (and/or Sequences) at
> Once
>
> Can this be done? or am i stuck doing this on each
> table and sequence whenever i create a new group?
>
> tia...
>
>
> =09
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will
> ignore your desire to
> choose an index scan if your joining column's
> datatypes do not
> match
>



=09
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
operationsengineer1 [ Fr, 07 Oktober 2005 19:21 ] [ ID #1000917 ]

Re: Set Privileges on All Tables - Wrong List - Sorry

Hi,
I'm making a function in pgsql to create and delete an user from the
database, but in all the variant, I found an error.
A simple example is

create function DeleteUser (varchar) returns void
as '
declare
login alias for $1;
begin
drop user login;
end
'
language 'plpgsql'

But always give an error. We can't manipulate roles in any function of pgsq=
l?
Sorry for my english and the question, but I'm a student yet!

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq
Leodan Vega Izaguirre [ Mi, 12 Oktober 2005 15:11 ] [ ID #1007932 ]
Datenbanken » gmane.comp.db.postgresql.php » Set Privileges on All Tables (or Sequences) at Once

Vorheriges Thema: Converting RFC 2822 "timestamp" to timestampz
Nächstes Thema: Triggers problem