pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Leodan Vega Izaguirre <lirodamphir@gmail.com>
To: pgsql-php@postgresql.org
Subject: Re: Set Privileges on All Tables - Wrong List - Sorry
Date: Wed, 12 Oct 2005 09:11:29 -0400
Message-ID: <454310280510120611t12e8b975n5e2b9fc188a5bd94@mail.gmail.com> (raw)
In-Reply-To: <20051007172105.95428.qmail@web33306.mail.mud.yahoo.com>
References: <20051007165518.67295.qmail@web33307.mail.mud.yahoo.com>
	<20051007172105.95428.qmail@web33306.mail.mud.yahoo.com>

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!



view thread (2+ messages)

Message-ID: <454310280510120611t12e8b975n5e2b9fc188a5bd94@mail.gmail.com>
Permalink:  ../454310280510120611t12e8b975n5e2b9fc188a5bd94@mail.gmail.com/
Also on:    postgresql.org/message-id/454310280510120611t12e8b975n5e2b9fc188a5bd94@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: lirodamphir@gmail.com
  Subject: Re: Set Privileges on All Tables - Wrong List - Sorry
  In-Reply-To: <454310280510120611t12e8b975n5e2b9fc188a5bd94@mail.gmail.com>
  References: <20051007165518.67295.qmail@web33307.mail.mud.yahoo.com> <20051007172105.95428.qmail@web33306.mail.mud.yahoo.com> <454310280510120611t12e8b975n5e2b9fc188a5bd94@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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