Re: Use "CREATE USER" in plpgsql function

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: Tatarnikov Alexander <cankrus(at)gmail(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Use "CREATE USER" in plpgsql function
Date: 2010-09-15 06:40:38
Message-ID: AANLkTikx3fkJC5c5U2qb7SYSDOCCpcS20gxrM_oi2nci@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

On 15 September 2010 08:05, Tatarnikov Alexander <cankrus(at)gmail(dot)com> wrote:
> Hello!
>
> I have function wich check user credentials and if test passed function must
> create new user with generated username and password.
>
> Language is plpgsql.
>
> so question is how to "unembrace" this parameter (i mean creds."userName")?

Show the whole function please.

>
> Thanks
> --
> ------
> Alexander
>

--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com /
Linkedin: http://ru.linkedin.com/in/grayhemp /
JID/GTalk: gray(dot)ru(at)gmail(dot)com / Skype: gray-hemp / ICQ: 29353802

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Sergey Konoplev 2010-09-15 07:55:03 Re: Use "CREATE USER" in plpgsql function
Previous Message Tatarnikov Alexander 2010-09-15 04:05:03 Use "CREATE USER" in plpgsql function