Re: Set Privileges on All Tables - Wrong List - Sorry - Mailing list pgsql-php

From Leodan Vega Izaguirre
Subject Re: Set Privileges on All Tables - Wrong List - Sorry
Date
Msg-id 454310280510120611t12e8b975n5e2b9fc188a5bd94@mail.gmail.com
Whole thread Raw
In response to Re: Set Privileges on All Tables - Wrong List - Sorry  (<operationsengineer1@yahoo.com>)
List pgsql-php
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 pgsql?
Sorry for my english and the question, but I'm a student yet!

pgsql-php by date:

Previous
From: Adam Witney
Date:
Subject: Re: Automatically opening pdf files stored in a bytea
Next
From: Volkan YAZICI
Date:
Subject: Re: Automatically opening pdf files stored in a bytea field